Ignore:
Timestamp:
Oct 25, 2008, 12:09:30 AM (11 years ago)
Author:
nico
Message:
  • Add caca's php constants definition
  • Add php binding for 13 new functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/php_caca.h

    r3089 r3091  
    1616#include <caca.h>
    1717
    18 
    1918#define PHP_CACA_VERSION "0.0"
    2019#define PHP_CACA_EXTNAME "caca"
     20
     21#define PHP_CACA_CANVAS_RES_NAME "caca_canvas"
     22#define PHP_CACA_DITHER_RES_NAME "caca_dither"
     23#define PHP_CACA_FONT_RES_NAME "caca_font"
     24#define PHP_CACA_FILE_RES_NAME "caca_file"
     25#define PHP_CACA_DISPLAY_RES_NAME "caca_display"
     26#define PHP_CACA_EVENT_RES_NAME "caca_event"
     27
     28int le_caca_canvas;
     29int le_caca_dither;
     30int le_caca_font;
     31int le_caca_file;
     32int le_caca_display;
     33int le_caca_event;
    2134
    2235PHP_MINIT_FUNCTION(caca);
    2336PHP_MINFO_FUNCTION(caca);
    2437
     38PHP_FUNCTION(caca_create_canvas);
    2539PHP_FUNCTION(caca_manage_canvas);
    2640PHP_FUNCTION(caca_unmanage_canvas);
     
    2842PHP_FUNCTION(caca_get_canvas_width);
    2943PHP_FUNCTION(caca_get_canvas_height);
    30 PHP_FUNCTION(caca_free_canvas);
     44PHP_FUNCTION(caca_get_canvas_chars);
     45PHP_FUNCTION(caca_get_canvas_attrs);
    3146PHP_FUNCTION(caca_rand);
    3247PHP_FUNCTION(caca_get_version);
     
    3550PHP_FUNCTION(caca_get_cursor_y);
    3651PHP_FUNCTION(caca_put_char);
     52PHP_FUNCTION(caca_get_char);
    3753PHP_FUNCTION(caca_put_str);
    3854PHP_FUNCTION(caca_printf);
     
    5167PHP_FUNCTION(caca_stretch_left);
    5268PHP_FUNCTION(caca_stretch_right);
     69PHP_FUNCTION(caca_get_attr);
    5370PHP_FUNCTION(caca_set_attr);
    5471PHP_FUNCTION(caca_put_attr);
     
    99116PHP_FUNCTION(caca_get_dither_algorithm);
    100117PHP_FUNCTION(caca_dither_bitmap);
    101 PHP_FUNCTION(caca_free_dither);
    102118PHP_FUNCTION(caca_get_font_list);
    103119PHP_FUNCTION(caca_get_font_width);
    104120PHP_FUNCTION(caca_get_font_height);
    105121PHP_FUNCTION(caca_render_canvas);
    106 PHP_FUNCTION(caca_free_font);
    107122PHP_FUNCTION(caca_canvas_set_figfont);
    108123PHP_FUNCTION(caca_put_figchar);
     
    117132PHP_FUNCTION(caca_get_display_driver);
    118133PHP_FUNCTION(caca_set_display_driver);
    119 PHP_FUNCTION(caca_free_display);
    120134PHP_FUNCTION(caca_refresh_display);
    121135PHP_FUNCTION(caca_set_display_time);
Note: See TracChangeset for help on using the changeset viewer.