Ignore:
Timestamp:
Oct 25, 2008, 12:35:21 AM (11 years ago)
Author:
nico
Message:
  • Add flac support and some other nice features...
Location:
libcaca/trunk/caca-php
Files:
2 edited

Legend:

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

    r3091 r3092  
    5454        PHP_FE(caca_set_color_ansi, NULL)
    5555        PHP_FE(caca_set_color_argb, NULL)
     56        PHP_FE(caca_attr_to_ansi, NULL)
     57        PHP_FE(caca_attr_to_ansi_fg, NULL)
     58        PHP_FE(caca_attr_to_ansi_bg, NULL)
    5659        PHP_FE(caca_draw_line, NULL)
    5760        PHP_FE(caca_draw_polyline, NULL)
     
    7073        PHP_FE(caca_get_frame_count, NULL)
    7174        PHP_FE(caca_set_frame, NULL)
    72         PHP_FE(caca_get_frame_name, NULL)
    7375        PHP_FE(caca_set_frame_name, NULL)
    7476        PHP_FE(caca_create_frame, NULL)
     
    102104        PHP_FE(caca_flush_figlet, NULL)
    103105        PHP_FE(caca_file_close, NULL)
     106        PHP_FE(caca_file_tell, NULL)
     107        PHP_FE(caca_file_read, NULL)
     108        PHP_FE(caca_file_write, NULL)
    104109        PHP_FE(caca_file_gets, NULL)
    105110        PHP_FE(caca_file_eof, NULL)
     111        PHP_FE(caca_import_memory, NULL)
     112        PHP_FE(caca_import_file, NULL)
    106113        PHP_FE(caca_get_import_list, NULL)
    107         PHP_FE(caca_export_memory, NULL)
    108114        PHP_FE(caca_get_export_list, NULL)
     115        PHP_FE(caca_create_display, NULL)
     116        PHP_FE(caca_create_display_with_driver, NULL)
    109117        PHP_FE(caca_get_display_driver_list, NULL)
    110118        PHP_FE(caca_get_display_driver, NULL)
    111119        PHP_FE(caca_set_display_driver, NULL)
     120        PHP_FE(caca_get_canvas, NULL)
    112121        PHP_FE(caca_refresh_display, NULL)
    113122        PHP_FE(caca_set_display_time, NULL)
     
    354363
    355364PHP_FUNCTION(caca_clear_canvas) {
    356         caca_canvas_t *canvas;
    357         FETCH_CANVAS(canvas);
    358         RETURN_BOOL(caca_clear_canvas(canvas) == 0);
    359365}
    360366
     
    443449}
    444450
    445 PHP_FUNCTION(caca_attr_to_argb64) {
    446 }
    447 
    448 PHP_FUNCTION(caca_utf32_to_ascii) {
    449 }
    450 
    451 PHP_FUNCTION(caca_utf32_is_fullwidth) {
     451PHP_FUNCTION(caca_attr_to_ansi) {
     452}
     453
     454PHP_FUNCTION(caca_attr_to_ansi_fg) {
     455}
     456
     457PHP_FUNCTION(caca_attr_to_ansi_bg) {
    452458}
    453459
     
    482488}
    483489
    484 PHP_FUNCTION(caca_draw_cp437_box) {
    485 }
    486 
    487490PHP_FUNCTION(caca_fill_box) {
    488491}
     
    503506}
    504507
    505 PHP_FUNCTION(caca_get_frame_name) {
    506 }
    507 
    508508PHP_FUNCTION(caca_set_frame_name) {
    509509}
     
    599599}
    600600
     601PHP_FUNCTION(caca_file_tell) {
     602}
     603
     604PHP_FUNCTION(caca_file_read) {
     605}
     606
     607PHP_FUNCTION(caca_file_write) {
     608}
     609
    601610PHP_FUNCTION(caca_file_gets) {
    602611}
     
    605614}
    606615
     616PHP_FUNCTION(caca_import_memory) {
     617}
     618
     619PHP_FUNCTION(caca_import_file) {
     620}
     621
    607622PHP_FUNCTION(caca_get_import_list) {
    608623}
    609624
    610 PHP_FUNCTION(caca_export_memory) {
    611 }
    612 
    613625PHP_FUNCTION(caca_get_export_list) {
    614626}
    615627
     628PHP_FUNCTION(caca_create_display) {
     629}
     630
     631PHP_FUNCTION(caca_create_display_with_driver) {
     632}
     633
    616634PHP_FUNCTION(caca_get_display_driver_list) {
    617635}
     
    623641}
    624642
     643PHP_FUNCTION(caca_get_canvas) {
     644}
     645
    625646PHP_FUNCTION(caca_refresh_display) {
    626647}
     
    662683}
    663684
    664 PHP_FUNCTION(caca_get_event_key_utf8) {
    665 }
    666 
    667685PHP_FUNCTION(caca_get_event_mouse_button) {
    668686}
     
    680698}
    681699
    682 
  • libcaca/trunk/caca-php/php_caca.h

    r3091 r3092  
    6262PHP_FUNCTION(caca_flip);
    6363PHP_FUNCTION(caca_flop);
    64 PHP_FUNCTION(caca_rotate_180);
    6564PHP_FUNCTION(caca_rotate_left);
    6665PHP_FUNCTION(caca_rotate_right);
     
    7271PHP_FUNCTION(caca_set_color_ansi);
    7372PHP_FUNCTION(caca_set_color_argb);
    74 PHP_FUNCTION(caca_attr_to_argb64);
    75 PHP_FUNCTION(caca_utf32_to_ascii);
    76 PHP_FUNCTION(caca_utf32_is_fullwidth);
     73PHP_FUNCTION(caca_attr_to_ansi);
     74PHP_FUNCTION(caca_attr_to_ansi_fg);
     75PHP_FUNCTION(caca_attr_to_ansi_bg);
    7776PHP_FUNCTION(caca_draw_line);
    7877PHP_FUNCTION(caca_draw_polyline);
     
    8584PHP_FUNCTION(caca_draw_box);
    8685PHP_FUNCTION(caca_draw_thin_box);
    87 PHP_FUNCTION(caca_draw_cp437_box);
    8886PHP_FUNCTION(caca_fill_box);
    8987PHP_FUNCTION(caca_draw_triangle);
     
    9290PHP_FUNCTION(caca_get_frame_count);
    9391PHP_FUNCTION(caca_set_frame);
    94 PHP_FUNCTION(caca_get_frame_name);
    9592PHP_FUNCTION(caca_set_frame_name);
    9693PHP_FUNCTION(caca_create_frame);
     
    124121PHP_FUNCTION(caca_flush_figlet);
    125122PHP_FUNCTION(caca_file_close);
     123PHP_FUNCTION(caca_file_tell);
     124PHP_FUNCTION(caca_file_read);
     125PHP_FUNCTION(caca_file_write);
    126126PHP_FUNCTION(caca_file_gets);
    127127PHP_FUNCTION(caca_file_eof);
     128PHP_FUNCTION(caca_import_memory);
     129PHP_FUNCTION(caca_import_file);
    128130PHP_FUNCTION(caca_get_import_list);
    129 PHP_FUNCTION(caca_export_memory);
    130131PHP_FUNCTION(caca_get_export_list);
     132PHP_FUNCTION(caca_create_display);
     133PHP_FUNCTION(caca_create_display_with_driver);
    131134PHP_FUNCTION(caca_get_display_driver_list);
    132135PHP_FUNCTION(caca_get_display_driver);
    133136PHP_FUNCTION(caca_set_display_driver);
     137PHP_FUNCTION(caca_get_canvas);
    134138PHP_FUNCTION(caca_refresh_display);
    135139PHP_FUNCTION(caca_set_display_time);
     
    145149PHP_FUNCTION(caca_get_event_type);
    146150PHP_FUNCTION(caca_get_event_key_ch);
    147 PHP_FUNCTION(caca_get_event_key_utf8);
    148151PHP_FUNCTION(caca_get_event_mouse_button);
    149152PHP_FUNCTION(caca_get_event_mouse_x);
Note: See TracChangeset for help on using the changeset viewer.