File modules/ud/ud_misc.c

  $Revision: 1.15 $

Miscellaneous functions to support UD
Status: NOT REVUED, NOT TESTED
Author(s): Chris Ottrey, Andrei Robachevsky

Included Files


Global Variable Lock

pthread_mutex_t Lock
Included from include/ca_defs.h
Visible in:  modules/ac/access_control.c
   modules/ca/ca_configFns.c
   modules/ca/ca_initFn.c
   modules/ca/ca_sanityCheck.c
   modules/ca/ca_sourceLoader.c
   modules/ca/ca_values.c
   modules/er/er_macro.c
   modules/pc/pc_commands.c
   modules/pm/pm_serials.c
   modules/pm/protocol_mirror.c
   modules/pw/protocol_whois.c
   modules/qc/query_command.c
   modules/qi/query_instructions.c
   modules/rp/rp_convert.c
   modules/rp/rp_load.c
   modules/rp/rp_search.c
   modules/rp/rp_tree.c
   modules/rp/rp_update.c
   modules/sv/server.c
   modules/ud/ud_comrol.c
   modules/ud/ud_core.c
   modules/ud/ud_main.c
   modules/ud/ud_misc.c
Used in: ca_get_adminIntElement()modules/ca/ca_configFns.c
  ca_get_adminStrElement()modules/ca/ca_configFns.c
  ca_get_boolean()modules/ca/ca_configFns.c
  ca_get_dirlist()modules/ca/ca_configFns.c
  ca_get_int()modules/ca/ca_configFns.c
  ca_get_string()modules/ca/ca_configFns.c
  ca_set_boolean()modules/ca/ca_configFns.c
  ca_set_string()modules/ca/ca_configFns.c
  ca_srchandle2Intelement()modules/ca/ca_configFns.c
  ca_srchandle2Strelement()modules/ca/ca_configFns.c

Global Function UD_ack()

int UD_ack ( Transaction_t* tr )
Prototyped in: modules/ud/ud_int.h
Calls: ER_perror()modules/er/er.c
  SK_puts()modules/sk/sk_socket.c
  fprintf(), g_string_free(), g_string_sized_new(), g_string_sprintf()
Called by: object_process()modules/ud/ud_core.c

Global Function attribute_free()

void attribute_free ( void* data, void* ptr )
Prototyped in: modules/ud/ud_int.h
Calls: free()
Used in: object_free()modules/ud/ud_misc.c

Global Function attribute_new()

Attribute_t* attribute_new ( const char* line )
Prototyped in: modules/ud/ud_int.h
Calls: DF_attribute_code2type()modules/df/defs.c
  DF_attribute_name2type()modules/df/defs.c
  attribute_new1()modules/ud/ud_misc.c
  free(), g_strndup(), index()

Global Function attribute_new1()

Attribute_t* attribute_new1 ( int type, const char* value )
Prototyped in: modules/ud/ud_int.h
Calls: calloc(), fprintf(), g_strchomp(), g_strchug(), g_strdup(), g_strndup(), index()
Called by: attribute_new()modules/ud/ud_misc.c

Global Function attribute_upd()

Attribute_t* attribute_upd ( Attribute_t* attr, int newtype, char* newvalue )
Prototyped in: modules/ud/ud_int.h
Calls: fprintf(), free(), g_strdup()

Global Function object_free()

void object_free ( Object_t* obj )
Prototyped in: modules/ud/ud_int.h
Calls: free(), g_slist_foreach(), g_slist_free(), g_string_free()
References Functions: attribute_free()modules/ud/ud_misc.c

Global Function object_new()

Object_t* object_new ( const char* line )
Prototyped in: modules/ud/ud_int.h
Calls: DF_class_code2type()modules/df/defs.c
  DF_class_name2type()modules/df/defs.c
  calloc(), fprintf(), free(), g_string_sized_new(), g_strndup(), index()

Global Function transaction_free()

void transaction_free ( Transaction_t* tr )
Prototyped in: modules/ud/ud_int.h
Calls: free_nh()modules/nh/nh.c
  free(), g_string_free()

Global Function transaction_new()

Transaction_t* transaction_new ( MYSQL* sql_connection, C_Type_t class_type )
Prototyped in: modules/ud/ud_int.h
Calls: calloc(), fprintf(), g_string_sized_new()