|
ekg2
GIT master
|
#include "ekg2.h"#include "oralog.h"#include <string.h>#include <time.h>#include <oci.h>#include <pthread.h>
Definicje | |
| #define | NULL 0 |
Funkcje | |
| static void | check_string_len (char *str) |
| static int | oralog_is_error (OCIError *lhp_error, sword status, int print_messages) |
| static void | set_connection_status (int val) |
| static void | free_global_handles () |
| static size_t | ora_strlen (const char *str) |
| int | oralog_is_connected () |
| int | oralog_db_connect (char *db_login, char *db_password, int quiet) |
| int | oralog_db_disconnect () |
| int | oralog_db_new_status (char *session, char *uid, char *status, char *descr, time_t change_time, int quiet) |
| int | oralog_db_new_msg (char *session, char *sender_uid, char **rcpts, char *content, time_t recv_time, int quiet) |
Zmienne | |
| static int | logsoracle_connected = 0 |
| OCIEnv * | hp_env = 0 |
| OCIServer * | hp_server = 0 |
| OCISession * | hp_session = 0 |
| OCISvcCtx * | hp_service = 0 |
| pthread_mutex_t | oralog_oper_lock = PTHREAD_MUTEX_INITIALIZER |
| #define NULL 0 |
|
static |
|
static |
|
inlinestatic |
| int oralog_db_connect | ( | char * | db_login, |
| char * | db_password, | ||
| int | quiet | ||
| ) |
| int oralog_db_disconnect | ( | ) |
| int oralog_db_new_msg | ( | char * | session, |
| char * | sender_uid, | ||
| char ** | rcpts, | ||
| char * | content, | ||
| time_t | recv_time, | ||
| int | quiet | ||
| ) |
| int oralog_db_new_status | ( | char * | session, |
| char * | uid, | ||
| char * | status, | ||
| char * | descr, | ||
| time_t | change_time, | ||
| int | quiet | ||
| ) |
| int oralog_is_connected | ( | ) |
|
static |
|
static |
| OCIEnv* hp_env = 0 |
| OCIServer* hp_server = 0 |
| OCISvcCtx* hp_service = 0 |
| OCISession* hp_session = 0 |
|
static |
| pthread_mutex_t oralog_oper_lock = PTHREAD_MUTEX_INITIALIZER |
1.8.13