Changeset 2692


Ignore:
Timestamp:
Aug 11, 2008, 2:50:55 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Add functions that handle a stack-based processing queue.
Location:
libpipi/trunk/pipi
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/Makefile.am

    r2680 r2692  
    1717        pipi.h \
    1818        pipi_internals.h \
     19        context.c \
    1920        pixels.c \
    2021        codec.c \
  • libpipi/trunk/pipi/pipi.h

    r2681 r2692  
    6464typedef struct pipi_image pipi_image_t;
    6565
     66/* pipi_context_t: the processing stack */
     67typedef struct pipi_context pipi_context_t;
     68
     69
     70extern pipi_context_t *pipi_create_context(void);
     71extern void pipi_destroy_context(pipi_context_t *);
     72extern int pipi_command(pipi_context_t *, char const *, ...);
    6673
    6774extern pipi_image_t *pipi_load(const char *);
  • libpipi/trunk/pipi/pipi_internals.h

    r2605 r2692  
    3535};
    3636
     37struct pipi_context
     38{
     39    int nimages;
     40    pipi_image_t *images[1024]; /* FIXME: do dynamic allocation */
     41};
     42
    3743#ifdef USE_IMLIB2
    3844pipi_image_t *pipi_load_imlib2(const char *name);
Note: See TracChangeset for help on using the changeset viewer.