2011-04-22 15:09:32 +00:00
|
|
|
#ifndef PSYC_RENDER_H
|
|
|
|
# define PSYC_RENDER_H
|
|
|
|
|
2011-05-03 23:00:35 +00:00
|
|
|
#include <psyc/packet.h>
|
|
|
|
|
2011-04-25 21:14:22 +00:00
|
|
|
/**
|
|
|
|
* @file psyc/render.h
|
|
|
|
* @brief Interface for PSYC packet rendering.
|
|
|
|
*
|
|
|
|
* All rendering functions and the definitions they use are
|
|
|
|
* defined in this file.
|
|
|
|
*/
|
2011-04-22 09:50:13 +00:00
|
|
|
|
2011-04-25 21:14:22 +00:00
|
|
|
/**
|
|
|
|
* @defgroup rendering Rendering Functions
|
|
|
|
*
|
|
|
|
* This module contains all rendering functions.
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2011-04-25 21:40:38 +00:00
|
|
|
* Return codes for psyc_render.
|
2011-04-25 21:14:22 +00:00
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
//PSYC_RENDER_ERROR_ROUTING = -2,
|
|
|
|
PSYC_RENDER_ERROR = -1,
|
|
|
|
PSYC_RENDER_SUCCESS = 0,
|
2011-04-25 21:40:38 +00:00
|
|
|
} psycRenderRC;
|
2011-04-25 21:14:22 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Render a PSYC packet into a buffer.
|
|
|
|
*/
|
2011-05-03 23:00:35 +00:00
|
|
|
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.
|
|
|
|
*/
|
2011-05-03 23:00:35 +00:00
|
|
|
psycRenderRC psyc_renderList (psycList *list, char *buffer, size_t buflen);
|
2011-04-26 15:23:06 +00:00
|
|
|
|
2011-04-22 15:09:32 +00:00
|
|
|
#endif // PSYC_RENDER_H
|
2011-04-25 21:14:22 +00:00
|
|
|
|
|
|
|
/** @} */ // end of rendering group
|