Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <stdio.h>
Go to the source code of this file.
Typedefs | |
typedef struct numhash_table | Numhash |
Functions | |
Numhash * | numhash_create (const char *url) |
void | numhash_destroy (Numhash *table) |
int | numhash_find_number (Numhash *table, Octstr *nro) |
int | numhash_find_key (Numhash *table, long long key) |
long long | numhash_get_key (Octstr *nro) |
long long | numhash_get_char_key (char *nro) |
double | numhash_hash_fill (Numhash *table, int *longest) |
int | numhash_size (Numhash *table) |
typedef struct numhash_table Numhash |
Numhash* numhash_create | ( | const char * | url | ) |
Definition at line 313 of file numhash.c.
References charset, debug(), error(), http_create_empty_headers(), http_destroy_headers(), http_get_real(), http_header_get_content_type(), HTTP_METHOD_GET, HTTP_OK, info(), lines, numhash_add_number(), NUMHASH_AUTO_HASH, numhash_init(), octstr_create, octstr_destroy(), octstr_get_cstr, octstr_str_compare(), type, url, and warning().
Referenced by create_onetrans(), create_oneuser(), init_smsbox(), smsc2_reload_lists(), and smsc2_start().
void numhash_destroy | ( | Numhash * | table | ) |
Definition at line 275 of file numhash.c.
References table::numbers.
Referenced by destroy_onetrans(), destroy_oneuser(), main(), smsc2_cleanup(), and smsc2_reload_lists().
int numhash_find_key | ( | Numhash * | table, |
long long | key | ||
) |
Definition at line 228 of file numhash.c.
References numhash_number::key, and numhash_number::next.
Referenced by numhash_find_number().
Definition at line 218 of file numhash.c.
References numhash_number::key, numhash_find_key(), and numhash_get_key().
Referenced by bb_smscconn_receive(), blacklisted(), check_allowed_translation(), smsbox_req_handle(), smsc2_rout(), and whitelisted().
long long numhash_get_char_key | ( | char * | nro | ) |
Definition at line 257 of file numhash.c.
References numhash_number::key, and precision.
Referenced by numhash_add_number().
long long numhash_get_key | ( | Octstr * | nro | ) |
Definition at line 242 of file numhash.c.
References numhash_number::key, octstr_get_cstr, octstr_len(), and precision.
Referenced by numhash_find_number().
double numhash_hash_fill | ( | Numhash * | table, |
int * | longest | ||
) |
Definition at line 285 of file numhash.c.
References numhash_number::next.