FACT++  1.0
webDid.c File Reference
#include <stdio.h>
#include <ctype.h>
#include <time.h>
#include <dim.h>
#include <dic.h>
#include <dis.h>
+ Include dependency graph for webDid.c:

Go to the source code of this file.

Classes

struct  item
 
struct  nitem
 
struct  sitem
 
struct  objstate
 
struct  bitem
 

Typedefs

typedef struct item SERVER
 
typedef struct nitem NODE
 
typedef struct sitem CURR_SERVICE
 
typedef struct objstate OBJSTATE
 
typedef struct bitem BROWSER
 

Functions

int did_init (char *local_node, int dns_port)
 
SERVERfind_server (NODE *nodep, int pid)
 
NODEfind_node (char *node)
 
int find_server_service_pattern (SERVER *servp, char *pattern)
 
int find_service_pattern (NODE *nodep, SERVER *servpp, char *pattern, int *n_servers)
 
CURR_SERVICEfind_curr_service (char *service)
 
BROWSERfind_browser (int id)
 
void prepare_browser_tree ()
 
void update_servers (int *tag, DNS_DID *buffer, int *size)
 
void got_update_services (BROWSER **tag, char *buffer, int *size)
 
char * update_services (char *node, char *server, int pid, int browser)
 
void got_update_smi_objects (BROWSER **tag, char *buffer, int *size)
 
char * update_smi_objects (char *node, char *server, int pid, int browser)
 
void get_curr_service_format ()
 
void get_service_format (char *buffer, char *service, char *format)
 
int delete_curr_service (CURR_SERVICE *servicep)
 
int delete_browser (BROWSER *browserp)
 
void check_browser (BROWSER *tag)
 
BROWSERcreate_browser (int id)
 
int update_command_data (char *service, int conn_id, BROWSER *browserp)
 
int update_service_data (char *service, int conn_id, int subscribe, int req, int browser, int force)
 
int check_browser_changes (char *service, int conn_id, int subscribe, int req, int browser, int force)
 
int find_services (char *pattern, int conn_id, int browser, int force)
 
void recv_service_info (void **tag, int *buffer, int *size)
 
void print_service_formatted (CURR_SERVICE *servicep, void *buff, int size)
 
int did_write_string (char type, int num, void **buffer_ptr, int ssize)
 
void sprintf_html (char *str, int n, int value)
 
void print_service_standard (int *buff, int size)
 
void print_service_longlong (longlong *buff, int size)
 
void print_service_short (short *buff, int size)
 
void print_service_char (char *buff, int size)
 
void print_service_float (float *buff, int size)
 
void print_service_double (double *buff, int size)
 
char * addJSONStart (char *ptr)
 
char * addJSONEnd (char *ptr)
 
char * addJSONNodeStart (char *ptr, char *node)
 
char * addJSONNodeEnd (char *ptr)
 
char * addJSONChildStart (char *ptr, char *child, int sep)
 
char * addJSONChildEnd (char *ptr, int sep)
 
char * getJSONBuffer (char *node, int browser)
 
char * getJSONSmiBuffer (char *node, int browser)
 
char * getJSONHeader (int isSMI)
 
int getNodeLabel (char *name, char *label)
 
int prepareJSONTree (char *node, BROWSER *browserp)
 
int prepareJSONSmiTree (char *node, BROWSER *browserp)
 
int prepareJSONHeader ()
 
char * prepareJSONServiceList (SERVER *servp, char *node, int pid, BROWSER *browserp)
 
char * prepareJSONSmiObjectList (SERVER *servp, char *node, int pid, BROWSER *browserp)
 
void update_smi_state (OBJSTATE **tag, char *data, int *size)
 
int findSmiServices (BROWSER *browserp, SERVER *servp)
 
int findSmiModeObj (DNS_SERVICE_INFO *serviceptr, int n_services, char *name)
 
int checkSmiObjName (DNS_SERVICE_INFO *servicep)
 
int matchString (char *wzString, char *wzPattern)
 
int get_type_size (char type)
 
void did_prepare_command (char *str, char *service, char *format)
 
int read_str_int (char *str)
 
int read_str_char (char *str, char *cc)
 
void did_read_string (char type, int num, void **buffer_ptr, char **str_ptr)
 

Variables

int WebDID_Debug
 
NODENode_head = (NODE *)0
 
CURR_SERVICECurr_service_head = (CURR_SERVICE *)0
 
BROWSERBrowser_head = (BROWSER *)0
 
char * JSONBuffer = 0
 
int JSONBufferSize = 0
 
char JSONHeader [256] = {'\0'}
 
char JSONSmiHeader [256] = {'\0'}
 
char * JSONSmiBuffer = 0
 
int JSONSmiBufferSize = 0
 
int First_time = 1
 
int Curr_view_opt = -1
 
char Curr_view_opt_par [80]
 
char Curr_service_name [132]
 
char Curr_service_format [256]
 
int Curr_service_print_type = 0
 
int N_nodes = 0
 
int N_servers = 0
 
int N_services = 0
 
static char no_link = -1
 
static char no_link_str [5] = "DEAD"
 
int no_link_int = -1
 
FILE * fptr
 
char * Service_content_str
 
char * Curr_service_list = 0
 
char * Curr_client_list = 0
 
int Curr_service_id = 0
 
SERVERGot_Service_List = 0
 
SERVERGot_Client_List = 0
 
int Timer_q
 
char Title [128]
 
char * JSONServices = 0
 
int JSONServicesSize = 0
 
char * JSONSmiServices = 0
 
int JSONSmiServicesSize = 0