serialize.h 1.0 KB

123456789101112131415161718192021222324252627
  1. #ifndef MC__SERIALIZE_H
  2. #define MC__SERIALIZE_H
  3. #include <config.h>
  4. #include "lib/global.h"
  5. #include "lib/mcconfig.h"
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. /*** enums ***************************************************************************************/
  8. /*** structures declarations (and typedefs of structures)*****************************************/
  9. /*** global variables defined in .c file *********************************************************/
  10. /*** declarations of public functions ************************************************************/
  11. char *mc_serialize_str (const char prefix, const char *data, GError ** error);
  12. char *mc_deserialize_str (const char prefix, const char *data, GError ** error);
  13. char *mc_serialize_config (const mc_config_t * data, GError ** error);
  14. mc_config_t *mc_deserialize_config (const char *data, GError ** error);
  15. /*** inline functions ****************************************************************************/
  16. #endif