#include "config.h"
#include "defines.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <dlfcn.h>
#include <locale.h>
#include <pthread.h>
#include <pwd.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include "semaphores.h"
#include "hashlib.h"
#include "utils.h"
#include "configparser.h"
#include "template.h"
#include "readline.h"
#include "charconvert.h"
#include "clientlib.h"
Go to the source code of this file.
Functions | |
| void * | reget_shm_ptr () |
| void * | get_shm_ptr () |
| u_char * | get_uconf_name (const u_char *uname) |
| int | set_us_up_the_socket (void) |
| void | generate_tpl_name (u_char buff[], int len, t_name_value *v) |
| void | cf_set_variable (t_cf_template *tpl, t_name_value *cs, u_char *vname, const u_char *val, size_t len, int html) |
| void | str_error_message (const u_char *err, FILE *out, int rd,...) |
| u_char * | get_error_message (const u_char *err, int rd, size_t *len,...) |
| t_message * | delete_subtree (t_message *msg) |
| void | cleanup_struct (t_cl_thread *thr) |
| u_char * | get_link (u_int64_t tid, u_int64_t mid) |
| int | has_answers (t_message *msg) |
| int | handle_thread_list_posting (t_message *p, t_cf_hash *head, u_int64_t tid, int mode) |
| int | handle_thread (t_cl_thread *thr, t_cf_hash *head, int mode) |
| int | handle_posting_filters (t_cf_hash *head, t_cl_thread *thr, t_cf_template *tpl) |
| u_char * | get_time (t_configuration *cfg, const u_char *symbol, int *len, time_t *date) |
| int | cf_get_next_thread_through_sock (int sock, rline_t *tsd, t_cl_thread *thr, const u_char *tplname) |
| void * | cf_get_next_thread_through_shm (void *shm_ptr, t_cl_thread *thr, const u_char *tplname) |
| int | cf_get_message_through_sock (int sock, rline_t *tsd, t_cl_thread *thr, const u_char *tplname, u_int64_t tid, u_int64_t mid, int del) |
| int | cf_get_message_through_shm (void *shm_ptr, t_cl_thread *thr, const u_char *tplname, u_int64_t tid, u_int64_t mid, int del) |
| int | cf_register_mod_api_ent (const u_char *mod_name, const u_char *unique_identifier, t_mod_api func) |
| int | cf_unregister_mod_api_ent (const u_char *unid) |
| t_mod_api | cf_get_mod_api_ent (const u_char *unid) |
| void | destroy_entry (void *elem) |
| void | cf_init (void) |
| void | cf_fini (void) |
Variables | |
| t_cf_hash * | GlobalValues = NULL |
| t_cf_hash * | APIEntries = NULL |
| u_char | ErrorString [50] |
Definition in file clientlib.c.
|
|
library destructor function Definition at line 1197 of file clientlib.c. |
|
||||||||||||||||||||||||||||
|
This function gets a message from the server
Definition at line 1002 of file clientlib.c. |
|
||||||||||||||||||||||||||||||||
|
This function gets a message from the server
Definition at line 947 of file clientlib.c. |
|
|
This function returns a pointer to an API hook function
Definition at line 1158 of file clientlib.c. |
|
||||||||||||||||
|
This function reads the next thread from the shared memory segment
Definition at line 809 of file clientlib.c. |
|
||||||||||||||||||||
|
This function reads the next thread from a socket
Definition at line 706 of file clientlib.c. |
|
|
library constructor function Definition at line 1186 of file clientlib.c. |
|
||||||||||||||||
|
This function registeres a module API entry
Definition at line 1117 of file clientlib.c. |
|
||||||||||||||||||||||||||||
|
This function sets a variable in a template. The value will be converted to the output charset
Definition at line 236 of file clientlib.c. |
|
|
This function deletes a module API hook
Definition at line 1144 of file clientlib.c. |
|
|
This function frees the complete thread structure
Definition at line 492 of file clientlib.c. |
|
|
This function deletes a posting subtree
Definition at line 473 of file clientlib.c. |
|
|
private function for destroying a module api entry
Definition at line 1175 of file clientlib.c. |
|
||||||||||||||||
|
This function generates a template name
Definition at line 223 of file clientlib.c. |
|
||||||||||||||||||||
|
This function returns an error message
Definition at line 389 of file clientlib.c. |
|
||||||||||||
|
This function generates a link to a thread
Definition at line 540 of file clientlib.c. |
|
|
This function gets a pointer to the shared memory segment
Definition at line 101 of file clientlib.c. |
|
||||||||||||||||||||
|
This function creates a date string
Definition at line 678 of file clientlib.c. |
|
|
This function tries to find the path to the user configuration file
Definition at line 145 of file clientlib.c. |
|
||||||||||||||||
|
This function runs POSTING_HANDLER plugins
Definition at line 651 of file clientlib.c. |
|
||||||||||||||||
|
This function runs VIEW_HANDLER plugins on a completely read thread.
Definition at line 632 of file clientlib.c. |
|
||||||||||||||||||||
|
This function runs VIEW_LIST_HANDLER plugins
Definition at line 606 of file clientlib.c. |
|
|
This function checks if a message has answers
Definition at line 563 of file clientlib.c. |
|
|
This function re-gets the pointer to the shared memory segment
Definition at line 75 of file clientlib.c. |
|
|
This function creates a socket handle an connects to the server
Definition at line 186 of file clientlib.c. |
|
||||||||||||||||||||
|
This function spits out an error message by a error string
Definition at line 278 of file clientlib.c. |
|
|
In this hash the module API entries will be saved Definition at line 63 of file clientlib.c. |
|
|
contains error string in failure case Definition at line 66 of file clientlib.c. |
|
|
In this hash global values can be saved, e.g. the username of logged in users Definition at line 61 of file clientlib.c. |
1.3.5