AfDal Main Module: Initialization function, types used across Af-Arch and some utilities


Data Structures

struct  __AfDalData
 Internal implementation for AfDalData object. More...
struct  __AfDalDecimalData
 Internal implementation for AfDalDecimalData object. More...
struct  __AfDalMultiData
 Internal implementation for AfDalMultiData object. More...
struct  __AfDalNodeData
 Internal implementation for AfDalNodeData object. More...
struct  __AfDalNulData
 Internal implementation for AfDalNulData object. More...
struct  __AfDalSimpleData
 Internal implementation for AfDalSimpleData object. More...
struct  __AfDalStringData
 Internal implementation for AfDalStringData object. More...

Typedefs

typedef __AfDalData AfDalData
 Object returned by an AFDAL_REQUEST_DATA request type.
typedef gboolean(* AfDalDataFunc )(AfDalData *data, gpointer usr_data)
 Async handler for AfDalData service request response.
typedef _AfDalDataNode AfDalDataNode
 Main object which is the base class for all item objects received on request responses.
typedef __AfDalDecimal AfDalDecimal
 Decimal number representation used across the Af-Arch framework.
typedef __AfDalDecimalData AfDalDecimalData
 Object returned by an AFDAL_REQUEST_DECIMAL_DATA request type.
typedef gboolean(* AfDalDecimalFunc )(AfDalDecimalData *data, gpointer usr_data)
 Async handler for AfDalDecimalData service request response.
typedef gboolean(* AfDalFunc )(gpointer data, gpointer usr_data)
 Generic async handler for every AfDal*Data supported service request response.
typedef __AfDalMultiData AfDalMultiData
 Object returned by an AFDAL_REQUEST_MULTI_DATA request type.
typedef gboolean(* AfDalMultiFunc )(AfDalMultiData *data, gpointer usr_data)
 Async handler for AfDalMultiData service request response.
typedef __AfDalNodeData AfDalNodeData
 Object returned by an AFDAL_REQUEST_NODE_DATA request type.
typedef gboolean(* AfDalNodeFunc )(AfDalNodeData *data, gpointer user_data)
 Async handler for AfDalNodeData service request response.
typedef __AfDalNulData AfDalNulData
 Object returned by an AFDAL_REQUEST_NUL_DATA request type.
typedef gboolean(* AfDalNulFunc )(AfDalNulData *data, gpointer usr_data)
 Async handler for AfDalNulData service request response.
typedef __AfDalSimpleData AfDalSimpleData
 Object returned by an AFDAL_REQUEST_SIMPLE_DATA request type.
typedef gboolean(* AfDalSimpleFunc )(AfDalSimpleData *data, gpointer usr_data)
 Async handler for AfDalSimpleData service request response.
typedef __AfDalStringData AfDalStringData
 Object returned by an AFDAL_REQUEST_STRING_DATA request type.
typedef gboolean(* AfDalStringFunc )(AfDalStringData *data, gpointer usr_data)
 Async handler for AfDalStringData service request response.

Enumerations

enum  AfDalRequestReturnData {
  AFDAL_REQUEST_MULTI_DATA, AFDAL_REQUEST_DATA, AFDAL_REQUEST_NODE_DATA, AFDAL_REQUEST_DECIMAL_DATA,
  AFDAL_REQUEST_STRING_DATA, AFDAL_REQUEST_SIMPLE_DATA, AFDAL_REQUEST_NUL_DATA
}
 Request type supported by Af-Arch. More...
enum  AfDalState {
  AFDAL_ERROR, AFDAL_OK, AFDAL_UPDATE_SERVICES_NEEDED, AFDAL_SESSION_EXPIRED,
  AFDAL_REQUEST_TIMEOUT
}
 AfDal request layer status codes. More...
enum  RequestErrorReport {
  CONNECTION_ERROR, CONNECTION_CHECK_ERROR, USER_CALLBACK_NOT_DEFINED_ERROR, SYSTEM_CALLBACK_NOT_DEFINED_ERROR ,
  REQUEST_FILTERED_ERROR, AFDAL_REQUEST_ARGV_ERROR, SERVER_NAME_NOT_DEFINED_ERROR, CHANNEL_CREATION_ERROR,
  ABSTRACT_MESSAGE_ERROR, MESSAGE_DELIVERY_ERROR, WRONG_ENUM_VALUE_ERROR, DATASET_TRANSLATION_ERROR,
  WRONG_EXPECTED_SETOF_ITEM_TYPE_ERROR, ATTRIBUTE_NOT_PROPERLY_SET_ERROR, VALIDATION_FAILED_ERROR, UNABLE_TO_PARSE_REPLY_ERROR,
  SEARCH_STRING_ERROR
}
 Error reporting enumeration used by the AfDal layer to track and classify kwon erros. More...

Functions

void afdal_data_free (AfDalData *data, gboolean destroy_list)
 Destroy the given AfDalData object.
void afdal_decimal_data_free (AfDalDecimalData *data, gboolean destroy_decimal)
 Destroy the given AfDalDecimalData object.
void afdal_exit ()
 Terminates AfDal layer.
gboolean afdal_init ()
 Initializes the Af-Arch framework.
void afdal_multi_free (AfDalMultiData *data, gboolean destroy_lists)
 Destroy the given AfDalMultiData object.
void afdal_node_free (AfDalNodeData *data, gboolean destroy_data_node)
 Destroy the given AfDalNodeData object.
void afdal_nul_free (AfDalNulData *data)
 Destroy the given AfDalNulData object.
void afdal_print_version_info ()
 Prints to the console current compilation date and version for the LibAfDal layer.
void afdal_signal_disable ()
 Allows to disable default signal handler for current Af-Arch application.
void afdal_signal_install ()
 Install default Af-Arch signal handling for SIGSEGV.
void afdal_simple_free (AfDalSimpleData *data)
 Destroy the given AfDalSimpleData object.
void afdal_string_free (AfDalStringData *data, gboolean destroy_string)
 Destroy the given AfDalStringData object.