Welcome    Usage    Browse    Find CID    Search     Log in

cM API Documentation

openme.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "openme.h"
#include <dlfcn.h>
Include dependency graph for openme.c:

Go to the source code of this file.

Functions

int openme_init (char *env_use, char *env_plugins, char *plugin_names, int force_use)
void openme_init_hooks (struct openme_hooks *hooks)
void openme_callback (char *event_name, void *params)
void openme_register_callback (struct openme_info *info, char *event_name, void *func)
cJSON * openme_create_obj (char *str)
cJSON * openme_get_obj (cJSON *json, char *str)
void openme_print_obj (cJSON *obj)
cJSON * openme_load_json_file (char *file_name)
int openme_store_json_file (cJSON *json, char *file_name)
void openme_set_error (char *format, char *text)
void openme_print_error (void)
cJSON * cm_action (cJSON *inp)
int openme_init_f_ (char *env_use, char *env_plugins, char *plugin_names, int force_use)
int OPENME_INIT_F (char *env_use, char *env_plugins, char *plugin_names, int force_use)
void openme_callback_f_ (char *event_name, void *params)
void OPENME_CALLBACK_F (char *event_name, void *params)
cJSON * openme_create_obj_f_ (char *str)
cJSON * OPENME_CREATE_OBJ_F (char *str)
void openme_print_obj_f_ (cJSON **obj)
void OPENME_PRINT_OBJ_F (cJSON **obj)
cJSON * cm_action_f_ (cJSON **obj)
cJSON * CM_ACTION_F (cJSON **obj)

Variables

static void * dll
static int openme_use = 0
static int openme_initialized = 0
static struct openme_hooks oh = {NULL,NULL,NULL,NULL}
static struct openme_info oi = {NULL,NULL,""}
static char bufx [1024]
static char * bufy
static cJSON * json
static cJSON * json1

Function Documentation

cJSON* cm_action ( cJSON *  inp  ) 
cJSON* CM_ACTION_F ( cJSON **  obj  ) 

Definition at line 567 of file openme.c.

References cm_action().

cJSON* cm_action_f_ ( cJSON **  obj  ) 

Definition at line 566 of file openme.c.

References cm_action().

void openme_callback ( char *  event_name,
void *  params 
)
void OPENME_CALLBACK_F ( char *  event_name,
void *  params 
)

Definition at line 558 of file openme.c.

References openme_callback().

void openme_callback_f_ ( char *  event_name,
void *  params 
)

Definition at line 557 of file openme.c.

References openme_callback().

cJSON* openme_create_obj ( char *  str  ) 

Definition at line 295 of file openme.c.

References cmx::il, and openme_load_json_file().

Referenced by OPENME_CREATE_OBJ_F(), and openme_create_obj_f_().

cJSON* OPENME_CREATE_OBJ_F ( char *  str  ) 

Definition at line 561 of file openme.c.

References openme_create_obj().

cJSON* openme_create_obj_f_ ( char *  str  ) 

Definition at line 560 of file openme.c.

References openme_create_obj().

cJSON* openme_get_obj ( cJSON *  json,
char *  str 
)

Definition at line 364 of file openme.c.

Referenced by cm_action().

int OPENME_INIT_F ( char *  env_use,
char *  env_plugins,
char *  plugin_names,
int  force_use 
)

Definition at line 554 of file openme.c.

References openme_init().

int openme_init_f_ ( char *  env_use,
char *  env_plugins,
char *  plugin_names,
int  force_use 
)

Definition at line 552 of file openme.c.

References openme_init().

cJSON* openme_load_json_file ( char *  file_name  ) 
void openme_print_error ( void   ) 

Definition at line 468 of file openme.c.

References openme_info::error.

void openme_print_obj ( cJSON *  obj  ) 

Definition at line 378 of file openme.c.

Referenced by OPENME_PRINT_OBJ_F(), and openme_print_obj_f_().

void OPENME_PRINT_OBJ_F ( cJSON **  obj  ) 

Definition at line 564 of file openme.c.

References openme_print_obj().

void openme_print_obj_f_ ( cJSON **  obj  ) 

Definition at line 563 of file openme.c.

References openme_print_obj().

void openme_register_callback ( struct openme_info info,
char *  event_name,
void *  func 
)
void openme_set_error ( char *  format,
char *  text 
)

Definition at line 454 of file openme.c.

References openme_info::error.

Referenced by cm_action(), openme_load_json_file(), and openme_store_json_file().

int openme_store_json_file ( cJSON *  json,
char *  file_name 
)

Definition at line 426 of file openme.c.

References openme_hooks::fclose, openme_hooks::fopen, openme_hooks::fprintf, and openme_set_error().

Referenced by cm_action().


Variable Documentation

char bufx[1024] [static]

Definition at line 49 of file openme.c.

Referenced by cm_action().

char* bufy [static]

Definition at line 50 of file openme.c.

Referenced by cm_action().

void* dll [static]

Definition at line 39 of file openme.c.

Referenced by openme_init().

cJSON* json [static]

Definition at line 51 of file openme.c.

Referenced by cm_action().

cJSON* json1 [static]

Definition at line 52 of file openme.c.

struct openme_hooks oh = {NULL,NULL,NULL,NULL} [static]

Definition at line 46 of file openme.c.

struct openme_info oi = {NULL,NULL,""} [static]

Definition at line 47 of file openme.c.

int openme_initialized = 0 [static]

Definition at line 44 of file openme.c.

Referenced by openme_callback(), and openme_init().

int openme_use = 0 [static]

Definition at line 43 of file openme.c.

Referenced by openme_callback(), and openme_init().


Generated on Wed May 28 02:49:02 2014 for Collective Mind Framework by DoxyGen 1.6.1
Concept, design and coordination: Grigori Fursin (C) 1993-2013