1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-07-31 00:21:03 +00:00
libpsyc/include/psyc/render.h

44 lines
897 B
C
Raw Normal View History

2011-04-22 15:09:32 +00:00
#ifndef PSYC_RENDER_H
#include <psyc/packet.h>
2011-04-25 21:14:22 +00:00
/**
* @file psyc/render.h
* @brief Interface for PSYC packet rendering.
*
2011-05-09 12:37:57 +00:00
* All rendering functions and the definitions they use are defined here.
2011-04-25 21:14:22 +00:00
*/
2011-04-22 09:50:13 +00:00
2011-04-25 21:14:22 +00:00
/**
2011-05-03 23:30:09 +00:00
* @defgroup render Rendering Functions
2011-04-25 21:14:22 +00:00
*
* This module contains all rendering functions.
* @{
*/
/**
* Return codes for psyc_render.
2011-04-25 21:14:22 +00:00
*/
typedef enum
{
PSYC_RENDER_ERROR_METHOD_MISSING = -3, ///< method missing, but data present
PSYC_RENDER_ERROR_MODIFIER_NAME_MISSING = -2, ///< modifier name missing
2011-04-25 21:14:22 +00:00
PSYC_RENDER_ERROR = -1,
PSYC_RENDER_SUCCESS = 0,
} psycRenderRC;
2011-04-25 21:14:22 +00:00
/**
* Render a PSYC packet into a buffer.
*/
psycRenderRC psyc_render (psycPacket *packet, char *buffer, size_t buflen);
2011-04-25 21:14:22 +00:00
2011-04-26 15:23:06 +00:00
/**
* Render a PSYC list into a buffer.
*/
psycRenderRC psyc_renderList (psycList *list, char *buffer, size_t buflen);
2011-04-26 15:23:06 +00:00
2011-05-09 12:37:57 +00:00
/** @} */ // end of render group
2011-05-09 07:02:15 +00:00
#define PSYC_RENDER_H
#endif