1
0
Fork 0
mbuni/mbuni/mmlib/mms_strings.h

44 lines
1.1 KiB
C
Raw Permalink Normal View History

2005-03-23 05:55:16 +00:00
/*
* Mbuni - Open Source MMS Gateway
*
* MMS strings module
*
2008-07-10 09:46:58 +00:00
* Copyright (C) 2003 - 2008, Digital Solutions Ltd. - http://www.dsmagic.com
2005-03-23 05:55:16 +00:00
*
* Paul Bagyenda <bagyenda@dsmagic.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License, with a few exceptions granted (see LICENSE)
*/
2005-03-10 08:01:02 +00:00
#ifndef __MMS_STRINGS_DEFINED__
#define __MMS_STRINGS_DEFINED__
typedef enum {
MS_1_1 = 1,
MS_1_2 = 2,
MM7_5 = 5
2005-03-10 08:01:02 +00:00
} mms_encoding;
#define MMS_DEFAULT_VERSION "1.0"
2005-03-10 08:01:02 +00:00
/* Declare the functions */
#define LINEAR(name, strings) \
Octstr *mms_##name##_to_string(long number); \
unsigned char *mms_##name##_to_cstr(long number); \
long mms_string_to_##name(Octstr *ostr); \
long mms_string_to_versioned_##name(Octstr *ostr, int version);
#define STRING(string)
#include "mms_strings.def"
#define LINEAR(name,strings)
#define STRING(string)
#define NAMED(name, strings) enum mms_##name##_enum { strings mms_##name##_dummy };
#define NSTRING(string, name) name,
#define VNSTRING(version, string, name) name,
#include "mms_strings.def"
#include "wap/wsp_strings.h"
void mms_strings_init(void);
void mms_strings_shutdown(void);
2005-03-10 08:01:02 +00:00
#endif