OpenSync Capability Internals
[OpenSync Capabilities Module Private]

The internal part of the OpenSync Capability. More...


Functions

OSyncCapabilityosync_capability_new_node (OSyncCapabilitiesObjType *objtype, xmlNodePtr node, OSyncError **error)
 Creates a new capability object which will be added to the end of capabilities of the capabilities object. The returned object will be freed with the capabilities object.
osync_bool osync_capability_parse (OSyncCapability *parent, xmlNodePtr node, OSyncCapability **first_child, OSyncCapability **last_child, unsigned int *child_count, OSyncError **error)
 Multi-level parsing of OSyncCapability based on a given XML Node.
void osync_capability_free (OSyncCapability *capability)
 Frees a capability object.
int osync_capability_compare_stdlib (const void *capability1, const void *capability2)
 Compare the names of two capabilities.


Detailed Description

The internal part of the OpenSync Capability.

Function Documentation

OSyncCapability* osync_capability_new_node ( OSyncCapabilitiesObjType objtype,
xmlNodePtr  node,
OSyncError **  error 
)

Creates a new capability object which will be added to the end of capabilities of the capabilities object. The returned object will be freed with the capabilities object.

Parameters:
objtype The pointer to a capabilitiesobjtype object
node The node must be already inserted at the end of childs of the objtype xml node
error The error which will hold the info in case of an error
Returns:
The pointer to the newly allocated capability object or NULL in case of error

Definition at line 33 of file opensync_capability.c.

Referenced by osync_capabilities_parse(), and osync_capability_new().

osync_bool osync_capability_parse ( OSyncCapability parent,
xmlNodePtr  node,
OSyncCapability **  first_child,
OSyncCapability **  last_child,
unsigned int *  child_count,
OSyncError **  error 
)

Multi-level parsing of OSyncCapability based on a given XML Node.

This function create a Capability-tree out of the given xmlNode pointer. This function is calling it self in a recursion and parses all siblings and child of the given xmlNode pointer.

Parameters:
parent The parent OSyncCapability
node The node to start parsing the capabilities.
first_child Reference to a pointer to store the first parsed OSyncCapability child
last_child Reference to a pointer to store the last parsed OSyncCapability child
child_count Reference to unsinged int to count the childs of the capability node
error The error which will hold the info in case of an error
Returns:
TRUE on success, FALSE on error

Definition at line 82 of file opensync_capability.c.

Referenced by osync_capabilities_parse(), and osync_capability_parse().

void osync_capability_free ( OSyncCapability capability  ) 

Frees a capability object.

Parameters:
capability The pointer to a capability object

Definition at line 132 of file opensync_capability.c.

Referenced by osync_capabilities_parse(), osync_capabilities_unref(), osync_capability_free(), and osync_capability_parse().

int osync_capability_compare_stdlib ( const void *  capability1,
const void *  capability2 
)

Compare the names of two capabilities.

Parameters:
capability1 The pointer to a capability object
capability2 The pointer to a capability object

Definition at line 146 of file opensync_capability.c.

Referenced by osync_capabilities_sort().


Generated on Fri Feb 13 13:33:28 2009 for OpenSync by  doxygen 1.5.7.1