Changeset 708


Ignore:
Timestamp:
Apr 1, 2006, 4:36:59 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Added cucul_get_export_list(). Returns a list of known export formats.
Location:
libcaca/trunk/cucul
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/cucul.c

    r706 r708  
    345345}
    346346
     347/**
     348 * \brief Get available export formats
     349 *
     350 * Return a list of available export formats. The list is a NULL-terminated
     351 * array of strings, interleaving a string containing the internal value for
     352 * the export format, to be used with \e cucul_export(), and a string
     353 * containing the natural language description for that export format.
     354 *
     355 * \return An array of strings.
     356 */
     357char const * const * cucul_get_export_list(void)
     358{
     359    static char const * const list[] =
     360    {
     361        "ansi", "ANSI",
     362        "html", "HTML",
     363        "html3", "backwards-compatible HTML",
     364        "irc", "IRC (mIRC colours)",
     365        "ps", "PostScript",
     366        "svg", "SVG",
     367        NULL, NULL
     368    };
     369
     370    return list;
     371}
     372
    347373void cucul_free_export(struct cucul_export *ex)
    348374{
  • libcaca/trunk/cucul/cucul.h

    r706 r708  
    229229
    230230struct cucul_export * cucul_create_export(cucul_t *, char const *);
     231char const * const * cucul_get_export_list(void);
    231232void cucul_free_export(struct cucul_export *);
    232233
Note: See TracChangeset for help on using the changeset viewer.