| 
    Kannel: Open Source WAP and SMS gateway
    svn-r5336
    
   | 
 
Go to the source code of this file.
Data Structures | |
| struct | table | 
| struct | numbered_element | 
| struct | linear_element | 
Macros | |
| #define | TABLE_SIZE(table) ((long)(sizeof(table) / sizeof(table[0]))) | 
| #define | LINEAR(name, strings) | 
| #define | STRING(string) { string, 0 }, | 
| #define | VSTRING(version, string) { string, version }, | 
| #define | NUMBERED(name, strings) | 
| #define | ASSIGN(string, number) { string, number, 0 }, | 
| #define | VASSIGN(version, string, number) { string, number, version }, | 
| #define | LINEAR(name, strings) | 
| #define | LINEAR(name, strings) | 
| #define | LINEAR(name, strings) | 
| #define | LINEAR(name, strings) | 
| #define | LINEAR(name, strings) | 
| #define | NUMBERED(name, strings) | 
| #define | LINEAR(name, strings) destroy_table(&name##_table); | 
Functions | |
| static Octstr * | number_to_string (long number, struct table *table) | 
| static unsigned char * | number_to_cstr (long number, struct table *table) | 
| static long | string_to_number (Octstr *ostr, struct table *table) | 
| static long | string_to_versioned_number (Octstr *ostr, struct table *table, int version) | 
| static void | construct_linear_table (struct table *table, const struct linear_element *strings, long size) | 
| static void | construct_numbered_table (struct table *table, const struct numbered_element *strings, long size) | 
| static void | destroy_table (struct table *table) | 
| void | wsp_strings_init (void) | 
| void | wsp_strings_shutdown (void) | 
Variables | |
| static int | initialized | 
Definition at line 120 of file wsp_strings.c.
| #define LINEAR | ( | name, | |
| strings | |||
| ) | 
Definition at line 144 of file wsp_strings.c.
| #define LINEAR | ( | name, | |
| strings | |||
| ) | 
Definition at line 144 of file wsp_strings.c.
| #define LINEAR | ( | name, | |
| strings | |||
| ) | 
Definition at line 144 of file wsp_strings.c.
| #define LINEAR | ( | name, | |
| strings | |||
| ) | 
Definition at line 144 of file wsp_strings.c.
| #define LINEAR | ( | name, | |
| strings | |||
| ) | 
Definition at line 144 of file wsp_strings.c.
| #define LINEAR | ( | name, | |
| strings | |||
| ) | 
Definition at line 144 of file wsp_strings.c.
| #define LINEAR | ( | name, | |
| strings | |||
| ) | destroy_table(&name##_table); | 
Definition at line 144 of file wsp_strings.c.
| #define NUMBERED | ( | name, | |
| strings | |||
| ) | 
Definition at line 117 of file wsp_strings.c.
| #define NUMBERED | ( | name, | |
| strings | |||
| ) | 
Definition at line 117 of file wsp_strings.c.
| #define STRING | ( | string | ) | { string, 0 }, | 
Definition at line 115 of file wsp_strings.c.
Definition at line 73 of file wsp_strings.c.
Definition at line 121 of file wsp_strings.c.
| #define VSTRING | ( | version, | |
| string | |||
| ) | { string, version }, | 
Definition at line 116 of file wsp_strings.c.
      
  | 
  static | 
Definition at line 225 of file wsp_strings.c.
References table::linear, table::numbers, octstr_imm(), table::size, size, table::strings, linear_element::version, and table::versions.
      
  | 
  static | 
Definition at line 242 of file wsp_strings.c.
References table::linear, numbered_element::number, table::numbers, octstr_imm(), table::size, size, table::strings, numbered_element::version, and table::versions.
      
  | 
  static | 
Definition at line 260 of file wsp_strings.c.
References table::numbers, table::strings, and table::versions.
      
  | 
  static | 
Definition at line 168 of file wsp_strings.c.
References gw_assert(), initialized, table::linear, number, table::numbers, octstr_get_cstr, table::size, size, and table::strings.
Definition at line 150 of file wsp_strings.c.
References gw_assert(), initialized, table::linear, number, table::numbers, octstr_duplicate, table::size, size, and table::strings.
Definition at line 187 of file wsp_strings.c.
References gw_assert(), initialized, table::linear, table::numbers, octstr_case_compare(), table::size, and table::strings.
Definition at line 203 of file wsp_strings.c.
References debug(), gw_assert(), initialized, table::linear, table::numbers, octstr_case_compare(), octstr_get_cstr, table::size, table::strings, and table::versions.
| void wsp_strings_init | ( | void | ) | 
Definition at line 269 of file wsp_strings.c.
References initialized.
Referenced by main(), wsp_session_init(), and wsp_unit_init().
| void wsp_strings_shutdown | ( | void | ) | 
Definition at line 286 of file wsp_strings.c.
References initialized.
Referenced by main(), wsp_session_shutdown(), and wsp_unit_shutdown().
      
  | 
  static | 
Definition at line 75 of file wsp_strings.c.
Referenced by number_to_cstr(), number_to_string(), string_to_number(), string_to_versioned_number(), wsp_strings_init(), and wsp_strings_shutdown().