#include "oralog.h"#include <string.h>#include <time.h>#include <ekg/xmalloc.h>#include <ekg/debug.h>#include <ekg/themes.h>#include <ekg/windows.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 = NULL |
| OCIServer * | hp_server = NULL |
| OCISession * | hp_session = NULL |
| OCISvcCtx * | hp_service = NULL |
| pthread_mutex_t | oralog_oper_lock = PTHREAD_MUTEX_INITIALIZER |
| #define NULL 0 |
| static void check_string_len | ( | char * | str | ) | [static] |
| static void free_global_handles | ( | ) | [static] |
| static size_t ora_strlen | ( | const char * | str | ) | [inline, static] |
| 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 int oralog_is_error | ( | OCIError * | lhp_error, | |
| sword | status, | |||
| int | print_messages | |||
| ) | [static] |
| static void set_connection_status | ( | int | val | ) | [static] |
| OCIEnv* hp_env = NULL |
| OCIServer* hp_server = NULL |
| OCISvcCtx* hp_service = NULL |
| OCISession* hp_session = NULL |
int logsoracle_connected = 0 [static] |
| pthread_mutex_t oralog_oper_lock = PTHREAD_MUTEX_INITIALIZER |
1.7.1