Changeset 2039 for libcaca/trunk


Ignore:
Timestamp:
Nov 23, 2007, 11:27:21 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Add proper declspec(dllexport) tags for Win32 compilation.
  • Manually export private libcaca symbols.
Location:
libcaca/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.h

    r2016 r2039  
    2525#define __CACA_H__
    2626
     27#include <cucul.h>
     28
     29#if !defined(_DOXYGEN_SKIP_ME)
     30#   if defined(__WIN32__) && defined(__LIBCACA__)
     31#       define __extern extern __declspec(dllexport)
     32#   else
     33#       define __extern extern
     34#   endif
     35#endif
     36
    2737/** libcaca API version */
    2838#define CACA_API_VERSION_1
    29 
    30 #include <cucul.h>
    3139
    3240#ifdef __cplusplus
     
    181189 *
    182190 *  @{ */
    183 caca_display_t * caca_create_display(cucul_canvas_t *);
    184 int caca_free_display(caca_display_t *);
    185 int caca_refresh_display(caca_display_t *);
    186 int caca_set_display_time(caca_display_t *, unsigned int);
    187 unsigned int caca_get_display_time(caca_display_t *);
    188 unsigned int caca_get_display_width(caca_display_t *);
    189 unsigned int caca_get_display_height(caca_display_t *);
    190 int caca_set_display_title(caca_display_t *, char const *);
     191__extern caca_display_t * caca_create_display(cucul_canvas_t *);
     192__extern int caca_free_display(caca_display_t *);
     193__extern int caca_refresh_display(caca_display_t *);
     194__extern int caca_set_display_time(caca_display_t *, unsigned int);
     195__extern unsigned int caca_get_display_time(caca_display_t *);
     196__extern unsigned int caca_get_display_width(caca_display_t *);
     197__extern unsigned int caca_get_display_height(caca_display_t *);
     198__extern int caca_set_display_title(caca_display_t *, char const *);
    191199/*  @} */
    192200
     
    197205 *
    198206 *  @{ */
    199 int caca_get_event(caca_display_t *, unsigned int, caca_event_t *, int);
    200 unsigned int caca_get_mouse_x(caca_display_t *);
    201 unsigned int caca_get_mouse_y(caca_display_t *);
    202 int caca_set_mouse(caca_display_t *, int);
    203 int caca_set_cursor(caca_display_t *, int);
     207__extern int caca_get_event(caca_display_t *, unsigned int,
     208                            caca_event_t *, int);
     209__extern unsigned int caca_get_mouse_x(caca_display_t *);
     210__extern unsigned int caca_get_mouse_y(caca_display_t *);
     211__extern int caca_set_mouse(caca_display_t *, int);
     212__extern int caca_set_cursor(caca_display_t *, int);
    204213/*  @} */
    205214
     
    208217#endif
    209218
     219#if !defined(_DOXYGEN_SKIP_ME)
     220#   undef __extern
     221#endif
     222
    210223#endif /* __CACA_H__ */
  • libcaca/trunk/cucul/cucul.h

    r1881 r2039  
    2424#ifndef __CUCUL_H__
    2525#define __CUCUL_H__
     26
     27#if !defined(_DOXYGEN_SKIP_ME)
     28#   if defined(__WIN32__) && defined(__LIBCUCUL__)
     29#       define __extern extern __declspec(dllexport)
     30#   else
     31#       define __extern extern
     32#   endif
     33#endif
    2634
    2735/** libcucul API version */
     
    7684 *
    7785 *  @{ */
    78 cucul_canvas_t * cucul_create_canvas(unsigned int, unsigned int);
    79 int cucul_set_canvas_size(cucul_canvas_t *, unsigned int, unsigned int);
    80 unsigned int cucul_get_canvas_width(cucul_canvas_t *);
    81 unsigned int cucul_get_canvas_height(cucul_canvas_t *);
    82 int cucul_free_canvas(cucul_canvas_t *);
    83 int cucul_rand(int, int);
     86__extern cucul_canvas_t * cucul_create_canvas(unsigned int, unsigned int);
     87__extern int cucul_set_canvas_size(cucul_canvas_t *, unsigned int,
     88                                   unsigned int);
     89__extern unsigned int cucul_get_canvas_width(cucul_canvas_t *);
     90__extern unsigned int cucul_get_canvas_height(cucul_canvas_t *);
     91__extern int cucul_free_canvas(cucul_canvas_t *);
     92__extern int cucul_rand(int, int);
    8493/*  @} */
    8594
     
    91100 *  @{ */
    92101#define CUCUL_MAGIC_FULLWIDTH 0x000ffffe /**< Used to indicate that the previous character was a fullwidth glyph. */
    93 int cucul_gotoxy(cucul_canvas_t *, int, int);
    94 int cucul_get_cursor_x(cucul_canvas_t *);
    95 int cucul_get_cursor_y(cucul_canvas_t *);
    96 int cucul_put_char(cucul_canvas_t *, int, int, unsigned long int);
    97 unsigned long int cucul_get_char(cucul_canvas_t *, int, int);
    98 int cucul_put_str(cucul_canvas_t *, int, int, char const *);
    99 unsigned long int cucul_get_attr(cucul_canvas_t *, int, int);
    100 int cucul_set_attr(cucul_canvas_t *, unsigned long int);
    101 int cucul_put_attr(cucul_canvas_t *, int, int, unsigned long int);
    102 int cucul_set_color_ansi(cucul_canvas_t *, unsigned char, unsigned char);
    103 int cucul_set_color_argb(cucul_canvas_t *, unsigned int, unsigned int);
    104 int cucul_printf(cucul_canvas_t *, int, int, char const *, ...);
    105 int cucul_clear_canvas(cucul_canvas_t *);
    106 int cucul_set_canvas_handle(cucul_canvas_t *, int, int);
    107 int cucul_get_canvas_handle_x(cucul_canvas_t *);
    108 int cucul_get_canvas_handle_y(cucul_canvas_t *);
    109 int cucul_blit(cucul_canvas_t *, int, int, cucul_canvas_t const *,
    110                cucul_canvas_t const *);
    111 int cucul_set_canvas_boundaries(cucul_canvas_t *, int, int,
    112                                 unsigned int, unsigned int);
     102__extern int cucul_gotoxy(cucul_canvas_t *, int, int);
     103__extern int cucul_get_cursor_x(cucul_canvas_t *);
     104__extern int cucul_get_cursor_y(cucul_canvas_t *);
     105__extern int cucul_put_char(cucul_canvas_t *, int, int, unsigned long int);
     106__extern unsigned long int cucul_get_char(cucul_canvas_t *, int, int);
     107__extern int cucul_put_str(cucul_canvas_t *, int, int, char const *);
     108__extern unsigned long int cucul_get_attr(cucul_canvas_t *, int, int);
     109__extern int cucul_set_attr(cucul_canvas_t *, unsigned long int);
     110__extern int cucul_put_attr(cucul_canvas_t *, int, int, unsigned long int);
     111__extern int cucul_set_color_ansi(cucul_canvas_t *, unsigned char,
     112                                  unsigned char);
     113__extern int cucul_set_color_argb(cucul_canvas_t *, unsigned int,
     114                                  unsigned int);
     115__extern int cucul_printf(cucul_canvas_t *, int, int, char const *, ...);
     116__extern int cucul_clear_canvas(cucul_canvas_t *);
     117__extern int cucul_set_canvas_handle(cucul_canvas_t *, int, int);
     118__extern int cucul_get_canvas_handle_x(cucul_canvas_t *);
     119__extern int cucul_get_canvas_handle_y(cucul_canvas_t *);
     120__extern int cucul_blit(cucul_canvas_t *, int, int, cucul_canvas_t const *,
     121                        cucul_canvas_t const *);
     122__extern int cucul_set_canvas_boundaries(cucul_canvas_t *, int, int,
     123                                         unsigned int, unsigned int);
    113124/*  @} */
    114125
     
    118129 *
    119130 *  @{ */
    120 int cucul_invert(cucul_canvas_t *);
    121 int cucul_flip(cucul_canvas_t *);
    122 int cucul_flop(cucul_canvas_t *);
    123 int cucul_rotate_180(cucul_canvas_t *);
    124 int cucul_rotate_left(cucul_canvas_t *);
    125 int cucul_rotate_right(cucul_canvas_t *);
    126 int cucul_stretch_left(cucul_canvas_t *);
    127 int cucul_stretch_right(cucul_canvas_t *);
     131__extern int cucul_invert(cucul_canvas_t *);
     132__extern int cucul_flip(cucul_canvas_t *);
     133__extern int cucul_flop(cucul_canvas_t *);
     134__extern int cucul_rotate_180(cucul_canvas_t *);
     135__extern int cucul_rotate_left(cucul_canvas_t *);
     136__extern int cucul_rotate_right(cucul_canvas_t *);
     137__extern int cucul_stretch_left(cucul_canvas_t *);
     138__extern int cucul_stretch_right(cucul_canvas_t *);
    128139/*  @} */
    129140
     
    133144 *
    134145 *  @{ */
    135 unsigned char cucul_attr_to_ansi(unsigned long int);
    136 unsigned char cucul_attr_to_ansi_fg(unsigned long int);
    137 unsigned char cucul_attr_to_ansi_bg(unsigned long int);
     146__extern unsigned char cucul_attr_to_ansi(unsigned long int);
     147__extern unsigned char cucul_attr_to_ansi_fg(unsigned long int);
     148__extern unsigned char cucul_attr_to_ansi_bg(unsigned long int);
    138149/*  @} */
    139150
     
    143154 *
    144155 *  @{ */
    145 unsigned long int cucul_utf8_to_utf32(char const *, unsigned int *);
    146 unsigned int cucul_utf32_to_utf8(char *, unsigned long int);
    147 unsigned char cucul_utf32_to_cp437(unsigned long int);
    148 unsigned long int cucul_cp437_to_utf32(unsigned char);
    149 char cucul_utf32_to_ascii(unsigned long int);
    150 int cucul_utf32_is_fullwidth(unsigned long int);
     156__extern unsigned long int cucul_utf8_to_utf32(char const *, unsigned int *);
     157__extern unsigned int cucul_utf32_to_utf8(char *, unsigned long int);
     158__extern unsigned char cucul_utf32_to_cp437(unsigned long int);
     159__extern unsigned long int cucul_cp437_to_utf32(unsigned char);
     160__extern char cucul_utf32_to_ascii(unsigned long int);
     161__extern int cucul_utf32_is_fullwidth(unsigned long int);
    151162/*  @} */
    152163
     
    157168 *
    158169 *  @{ */
    159 int cucul_draw_line(cucul_canvas_t *, int, int, int, int, unsigned long int);
    160 int cucul_draw_polyline(cucul_canvas_t *, int const x[], int const y[], int,
    161                         unsigned long int);
    162 int cucul_draw_thin_line(cucul_canvas_t *, int, int, int, int);
    163 int cucul_draw_thin_polyline(cucul_canvas_t *, int const x[], int const y[],
    164                              int);
    165 
    166 int cucul_draw_circle(cucul_canvas_t *, int, int, int, unsigned long int);
    167 int cucul_draw_ellipse(cucul_canvas_t *, int, int, int, int, unsigned long int);
    168 int cucul_draw_thin_ellipse(cucul_canvas_t *, int, int, int, int);
    169 int cucul_fill_ellipse(cucul_canvas_t *, int, int, int, int, unsigned long int);
    170 
    171 int cucul_draw_box(cucul_canvas_t *, int, int, int, int, unsigned long int);
    172 int cucul_draw_thin_box(cucul_canvas_t *, int, int, int, int);
    173 int cucul_draw_cp437_box(cucul_canvas_t *, int, int, int, int);
    174 int cucul_fill_box(cucul_canvas_t *, int, int, int, int, unsigned long int);
    175 
    176 int cucul_draw_triangle(cucul_canvas_t *, int, int, int, int, int, int,
    177                         unsigned long int);
    178 int cucul_draw_thin_triangle(cucul_canvas_t *, int, int, int, int, int, int);
    179 int cucul_fill_triangle(cucul_canvas_t *, int, int, int, int, int, int,
    180                         unsigned long int);
     170__extern int cucul_draw_line(cucul_canvas_t *, int, int, int, int,
     171                             unsigned long int);
     172__extern int cucul_draw_polyline(cucul_canvas_t *, int const x[],
     173                                 int const y[], int, unsigned long int);
     174__extern int cucul_draw_thin_line(cucul_canvas_t *, int, int, int, int);
     175__extern int cucul_draw_thin_polyline(cucul_canvas_t *, int const x[],
     176                                      int const y[], int);
     177
     178__extern int cucul_draw_circle(cucul_canvas_t *, int, int, int,
     179                               unsigned long int);
     180__extern int cucul_draw_ellipse(cucul_canvas_t *, int, int, int, int,
     181                                unsigned long int);
     182__extern int cucul_draw_thin_ellipse(cucul_canvas_t *, int, int, int, int);
     183__extern int cucul_fill_ellipse(cucul_canvas_t *, int, int, int, int,
     184                                unsigned long int);
     185
     186__extern int cucul_draw_box(cucul_canvas_t *, int, int, int, int,
     187                            unsigned long int);
     188__extern int cucul_draw_thin_box(cucul_canvas_t *, int, int, int, int);
     189__extern int cucul_draw_cp437_box(cucul_canvas_t *, int, int, int, int);
     190__extern int cucul_fill_box(cucul_canvas_t *, int, int, int, int,
     191                            unsigned long int);
     192
     193__extern int cucul_draw_triangle(cucul_canvas_t *, int, int, int, int, int,
     194                                 int, unsigned long int);
     195__extern int cucul_draw_thin_triangle(cucul_canvas_t *, int, int, int, int,
     196                                      int, int);
     197__extern int cucul_fill_triangle(cucul_canvas_t *, int, int, int, int, int,
     198                                 int, unsigned long int);
    181199/*  @} */
    182200
     
    187205 *
    188206 *  @{ */
    189 unsigned int cucul_get_frame_count(cucul_canvas_t *);
    190 int cucul_set_frame(cucul_canvas_t *, unsigned int);
    191 char const *cucul_get_frame_name(cucul_canvas_t *);
    192 int cucul_set_frame_name(cucul_canvas_t *, char const *);
    193 int cucul_create_frame(cucul_canvas_t *, unsigned int);
    194 int cucul_free_frame(cucul_canvas_t *, unsigned int);
     207__extern unsigned int cucul_get_frame_count(cucul_canvas_t *);
     208__extern int cucul_set_frame(cucul_canvas_t *, unsigned int);
     209__extern char const *cucul_get_frame_name(cucul_canvas_t *);
     210__extern int cucul_set_frame_name(cucul_canvas_t *, char const *);
     211__extern int cucul_create_frame(cucul_canvas_t *, unsigned int);
     212__extern int cucul_free_frame(cucul_canvas_t *, unsigned int);
    195213/*  @} */
    196214
     
    201219 *
    202220 *  @{ */
    203 cucul_dither_t *cucul_create_dither(unsigned int, unsigned int,
    204                                     unsigned int, unsigned int,
    205                                     unsigned long int, unsigned long int,
    206                                     unsigned long int, unsigned long int);
    207 int cucul_set_dither_palette(cucul_dither_t *,
    208                              unsigned int r[], unsigned int g[],
    209                              unsigned int b[], unsigned int a[]);
    210 int cucul_set_dither_brightness(cucul_dither_t *, float);
    211 float cucul_get_dither_brightness(cucul_dither_t *);
    212 int cucul_set_dither_gamma(cucul_dither_t *, float);
    213 float cucul_get_dither_gamma(cucul_dither_t *);
    214 int cucul_set_dither_contrast(cucul_dither_t *, float);
    215 float cucul_get_dither_contrast(cucul_dither_t *);
    216 int cucul_set_dither_antialias(cucul_dither_t *, char const *);
    217 char const * const * cucul_get_dither_antialias_list(cucul_dither_t const *);
    218 char const * cucul_get_dither_antialias(cucul_dither_t const *);
    219 int cucul_set_dither_color(cucul_dither_t *, char const *);
    220 char const * const * cucul_get_dither_color_list(cucul_dither_t const *);
    221 char const * cucul_get_dither_color(cucul_dither_t const *);
    222 int cucul_set_dither_charset(cucul_dither_t *, char const *);
    223 char const * const * cucul_get_dither_charset_list(cucul_dither_t const *);
    224 char const * cucul_get_dither_charset(cucul_dither_t const *);
    225 int cucul_set_dither_algorithm(cucul_dither_t *, char const *);
    226 char const * const * cucul_get_dither_algorithm_list(cucul_dither_t const *);
    227 char const * cucul_get_dither_algorithm(cucul_dither_t const *);
    228 int cucul_dither_bitmap(cucul_canvas_t *, int, int, int, int,
     221__extern cucul_dither_t *cucul_create_dither(unsigned int, unsigned int,
     222                                             unsigned int, unsigned int,
     223                                             unsigned long int,
     224                                             unsigned long int,
     225                                             unsigned long int,
     226                                             unsigned long int);
     227__extern int cucul_set_dither_palette(cucul_dither_t *,
     228                                      unsigned int r[], unsigned int g[],
     229                                      unsigned int b[], unsigned int a[]);
     230__extern int cucul_set_dither_brightness(cucul_dither_t *, float);
     231__extern float cucul_get_dither_brightness(cucul_dither_t *);
     232__extern int cucul_set_dither_gamma(cucul_dither_t *, float);
     233__extern float cucul_get_dither_gamma(cucul_dither_t *);
     234__extern int cucul_set_dither_contrast(cucul_dither_t *, float);
     235__extern float cucul_get_dither_contrast(cucul_dither_t *);
     236__extern int cucul_set_dither_antialias(cucul_dither_t *, char const *);
     237__extern char const * const * cucul_get_dither_antialias_list(cucul_dither_t
     238                                                              const *);
     239__extern char const * cucul_get_dither_antialias(cucul_dither_t const *);
     240__extern int cucul_set_dither_color(cucul_dither_t *, char const *);
     241__extern char const * const * cucul_get_dither_color_list(cucul_dither_t
     242                                                          const *);
     243__extern char const * cucul_get_dither_color(cucul_dither_t const *);
     244__extern int cucul_set_dither_charset(cucul_dither_t *, char const *);
     245__extern char const * const * cucul_get_dither_charset_list(cucul_dither_t
     246                                                            const *);
     247__extern char const * cucul_get_dither_charset(cucul_dither_t const *);
     248__extern int cucul_set_dither_algorithm(cucul_dither_t *, char const *);
     249__extern char const * const * cucul_get_dither_algorithm_list(cucul_dither_t
     250                                                              const *);
     251__extern char const * cucul_get_dither_algorithm(cucul_dither_t const *);
     252__extern int cucul_dither_bitmap(cucul_canvas_t *, int, int, int, int,
    229253                         cucul_dither_t const *, void *);
    230 int cucul_free_dither(cucul_dither_t *);
     254__extern int cucul_free_dither(cucul_dither_t *);
    231255/*  @} */
    232256
     
    237261 *
    238262 *  @{ */
    239 cucul_font_t *cucul_load_font(void const *, unsigned int);
    240 char const * const * cucul_get_font_list(void);
    241 unsigned int cucul_get_font_width(cucul_font_t *);
    242 unsigned int cucul_get_font_height(cucul_font_t *);
    243 unsigned long int const *cucul_get_font_blocks(cucul_font_t *);
    244 int cucul_render_canvas(cucul_canvas_t *, cucul_font_t *, void *,
    245                          unsigned int, unsigned int, unsigned int);
    246 int cucul_free_font(cucul_font_t *);
     263__extern cucul_font_t *cucul_load_font(void const *, unsigned int);
     264__extern char const * const * cucul_get_font_list(void);
     265__extern unsigned int cucul_get_font_width(cucul_font_t *);
     266__extern unsigned int cucul_get_font_height(cucul_font_t *);
     267__extern unsigned long int const *cucul_get_font_blocks(cucul_font_t *);
     268__extern int cucul_render_canvas(cucul_canvas_t *, cucul_font_t *, void *,
     269                                 unsigned int, unsigned int, unsigned int);
     270__extern int cucul_free_font(cucul_font_t *);
    247271/*  @} */
    248272
     
    254278 *
    255279 *  @{ */
    256 long int cucul_import_memory(cucul_canvas_t *, void const *,
    257                              unsigned long int, char const *);
    258 long int cucul_import_file(cucul_canvas_t *, char const *, char const *);
    259 char const * const * cucul_get_import_list(void);
    260 void *cucul_export_memory(cucul_canvas_t *, char const *, unsigned long int *);
    261 char const * const * cucul_get_export_list(void);
     280__extern long int cucul_import_memory(cucul_canvas_t *, void const *,
     281                                      unsigned long int, char const *);
     282__extern long int cucul_import_file(cucul_canvas_t *, char const *,
     283                                    char const *);
     284__extern char const * const * cucul_get_import_list(void);
     285__extern void *cucul_export_memory(cucul_canvas_t *, char const *,
     286                                   unsigned long int *);
     287__extern char const * const * cucul_get_export_list(void);
    262288/*  @} */
    263289
    264290#if !defined(_DOXYGEN_SKIP_ME)
    265291    /* Legacy stuff from beta versions, will probably disappear in 1.0 */
    266     typedef struct cucul_buffer cucul_buffer_t;
     292typedef struct cucul_buffer cucul_buffer_t;
    267293#   if defined __GNUC__ && __GNUC__ >= 3
    268294#       define CUCUL_DEPRECATED __attribute__ ((__deprecated__))
     
    270296#       define CUCUL_DEPRECATED
    271297#   endif
    272     int cucul_putchar(cucul_canvas_t *, int, int,
    273                       unsigned long int) CUCUL_DEPRECATED;
    274     unsigned long int cucul_getchar(cucul_canvas_t *,
    275                                     int, int) CUCUL_DEPRECATED;
    276     int cucul_putstr(cucul_canvas_t *, int, int,
    277                      char const *) CUCUL_DEPRECATED;
    278     int cucul_set_color(cucul_canvas_t *, unsigned char,
    279                         unsigned char) CUCUL_DEPRECATED;
    280     int cucul_set_truecolor(cucul_canvas_t *, unsigned int,
    281                             unsigned int) CUCUL_DEPRECATED;
    282     unsigned int cucul_get_canvas_frame_count(cucul_canvas_t *)
    283                                               CUCUL_DEPRECATED;
    284     int cucul_set_canvas_frame(cucul_canvas_t *,
    285                                unsigned int) CUCUL_DEPRECATED;
    286     int cucul_create_canvas_frame(cucul_canvas_t *,
    287                                   unsigned int) CUCUL_DEPRECATED;
    288     int cucul_free_canvas_frame(cucul_canvas_t *,
    289                                 unsigned int) CUCUL_DEPRECATED;
    290     cucul_buffer_t *cucul_load_memory(void *,
    291                                       unsigned long int) CUCUL_DEPRECATED;
    292     cucul_buffer_t *cucul_load_file(char const *) CUCUL_DEPRECATED;
    293     unsigned long int cucul_get_buffer_size(cucul_buffer_t *) CUCUL_DEPRECATED;
    294     void * cucul_get_buffer_data(cucul_buffer_t *) CUCUL_DEPRECATED;
    295     int cucul_free_buffer(cucul_buffer_t *) CUCUL_DEPRECATED;
    296     cucul_buffer_t * cucul_export_canvas(cucul_canvas_t *,
    297                                          char const *) CUCUL_DEPRECATED;
    298     cucul_canvas_t * cucul_import_canvas(cucul_buffer_t *,
    299                                          char const *) CUCUL_DEPRECATED;
    300     int cucul_rotate(cucul_canvas_t *) CUCUL_DEPRECATED;
    301     int cucul_set_dither_invert(cucul_dither_t *, int) CUCUL_DEPRECATED;
    302     int cucul_set_dither_mode(cucul_dither_t *, char const *) CUCUL_DEPRECATED;
    303     char const * const * cucul_get_dither_mode_list(cucul_dither_t
    304                                                     const *) CUCUL_DEPRECATED;
     298__extern int cucul_putchar(cucul_canvas_t *, int, int,
     299                           unsigned long int) CUCUL_DEPRECATED;
     300__extern unsigned long int cucul_getchar(cucul_canvas_t *,
     301                                         int, int) CUCUL_DEPRECATED;
     302__extern int cucul_putstr(cucul_canvas_t *, int, int,
     303                          char const *) CUCUL_DEPRECATED;
     304__extern int cucul_set_color(cucul_canvas_t *, unsigned char,
     305                             unsigned char) CUCUL_DEPRECATED;
     306__extern int cucul_set_truecolor(cucul_canvas_t *, unsigned int,
     307                                 unsigned int) CUCUL_DEPRECATED;
     308__extern unsigned int cucul_get_canvas_frame_count(cucul_canvas_t *)
     309                                                   CUCUL_DEPRECATED;
     310__extern int cucul_set_canvas_frame(cucul_canvas_t *,
     311                                    unsigned int) CUCUL_DEPRECATED;
     312__extern int cucul_create_canvas_frame(cucul_canvas_t *,
     313                                       unsigned int) CUCUL_DEPRECATED;
     314__extern int cucul_free_canvas_frame(cucul_canvas_t *,
     315                                     unsigned int) CUCUL_DEPRECATED;
     316__extern cucul_buffer_t *cucul_load_memory(void *,
     317                                           unsigned long int) CUCUL_DEPRECATED;
     318__extern cucul_buffer_t *cucul_load_file(char const *) CUCUL_DEPRECATED;
     319__extern unsigned long int cucul_get_buffer_size(cucul_buffer_t *)
     320                                                 CUCUL_DEPRECATED;
     321__extern void * cucul_get_buffer_data(cucul_buffer_t *) CUCUL_DEPRECATED;
     322__extern int cucul_free_buffer(cucul_buffer_t *) CUCUL_DEPRECATED;
     323__extern cucul_buffer_t * cucul_export_canvas(cucul_canvas_t *,
     324                                              char const *) CUCUL_DEPRECATED;
     325__extern cucul_canvas_t * cucul_import_canvas(cucul_buffer_t *,
     326                                              char const *) CUCUL_DEPRECATED;
     327__extern int cucul_rotate(cucul_canvas_t *) CUCUL_DEPRECATED;
     328__extern int cucul_set_dither_invert(cucul_dither_t *, int) CUCUL_DEPRECATED;
     329__extern int cucul_set_dither_mode(cucul_dither_t *,
     330                                   char const *) CUCUL_DEPRECATED;
     331__extern char const * const * cucul_get_dither_mode_list(cucul_dither_t
     332                                                         const *)
     333                                                         CUCUL_DEPRECATED;
    305334#   define CUCUL_COLOR_BLACK CUCUL_BLACK
    306335#   define CUCUL_COLOR_BLUE CUCUL_BLUE
     
    327356#endif
    328357
     358#if !defined(_DOXYGEN_SKIP_ME)
     359#   undef __extern
     360#endif
     361
    329362#endif /* __CUCUL_H__ */
  • libcaca/trunk/msvc/libcaca.vcproj

    r2038 r2039  
    4040                                Optimization="0"
    4141                                AdditionalIncludeDirectories="..\msvc;..\cucul"
    42                                 PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
     42                                PreprocessorDefinitions="WIN32;_DEBUG;_LIB;__LIBCACA__"
    4343                                MinimalRebuild="true"
    4444                                BasicRuntimeChecks="3"
     
    114114                                Name="VCCLCompilerTool"
    115115                                AdditionalIncludeDirectories="..\msvc;..\cucul"
    116                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
     116                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;__LIBCACA__"
    117117                                RuntimeLibrary="2"
    118118                                WarningLevel="3"
  • libcaca/trunk/msvc/libcucul.def

    r2038 r2039  
     1LIBRARY "libcucul"
     2
     3EXPORTS
     4    _cucul_set_canvas_size ; Private symbol used by libcaca
  • libcaca/trunk/msvc/libcucul.vcproj

    r2038 r2039  
    3535                        <Tool
    3636                                Name="VCMIDLTool"
    37                                 PreprocessorDefinitions="_DEBUG"
    38                                 MkTypLibCompatible="false"
    3937                        />
    4038                        <Tool
     
    4240                                Optimization="0"
    4341                                AdditionalIncludeDirectories="..\msvc"
    44                                 PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
     42                                PreprocessorDefinitions="WIN32;_DEBUG;_LIB;__LIBCUCUL__"
    4543                                MinimalRebuild="true"
    4644                                BasicRuntimeChecks="3"
     
    116114                                Name="VCCLCompilerTool"
    117115                                AdditionalIncludeDirectories="..\msvc"
    118                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
     116                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;__LIBCUCUL__"
    119117                                RuntimeLibrary="2"
    120118                                WarningLevel="3"
Note: See TracChangeset for help on using the changeset viewer.