Functions
Vortex Profiles: Related functions to manage profiles inside Vortex Library.

Functions

axlList * vortex_profiles_acquire (VortexCtx *ctx)
 Return current profiles registered, in a internally created list, acquiring an internal mutex to ensure thread safety while using the list. More...
 
axlList * vortex_profiles_get_actual_list (VortexCtx *ctx)
 Returns current profiles registered, in a newly allocated list. More...
 
axlList * vortex_profiles_get_actual_list_ref (VortexCtx *ctx)
 Return current profiles registered, in a internally created list. More...
 
int vortex_profiles_get_automatic_mime (VortexCtx *ctx, const char *uri)
 Allows to get current automatic MIME handling associated to the profile provided. More...
 
const char * vortex_profiles_get_mime_type (VortexCtx *ctx, const char *uri)
 Allows to get current configuration for the default mime type used for the given uri profile. More...
 
const char * vortex_profiles_get_transfer_encoding (VortexCtx *ctx, const char *uri)
 Allows to get current configuration for the default content transfer encoding used for the given uri profile. More...
 
axl_bool vortex_profiles_has_profiles (VortexCtx *ctx)
 Return true if there are profiles currently registered. More...
 
axl_bool vortex_profiles_is_defined_close (VortexCtx *ctx, const char *uri)
 Returns if the given profiles have actually defined the close handler. More...
 
axl_bool vortex_profiles_is_defined_received (VortexCtx *ctx, const char *uri)
 Returns if the given profiles have actually defined the received handler. More...
 
axl_bool vortex_profiles_is_defined_start (VortexCtx *ctx, const char *uri)
 Returns if the given profiles have actually defined the start handler. More...
 
axl_bool vortex_profiles_is_registered (VortexCtx *ctx, const char *uri)
 Return if a profile identifier is registered. More...
 
axl_bool vortex_profiles_register (VortexCtx *ctx, const char *uri, VortexOnStartChannel start, axlPointer start_user_data, VortexOnCloseChannel close, axlPointer close_user_data, VortexOnFrameReceived received, axlPointer received_user_data)
 Allows to register a new profile inside the Vortex Library. More...
 
axl_bool vortex_profiles_register_extended_start (VortexCtx *ctx, const char *uri, VortexOnStartChannelExtended extended_start, axlPointer extended_start_user_data)
 Allows to register an extended version for the start message. More...
 
int vortex_profiles_registered (VortexCtx *ctx)
 Return the actual number of profiles registered. More...
 
void vortex_profiles_release (VortexCtx *ctx)
 Release current profiles list. More...
 
void vortex_profiles_set_automatic_mime (VortexCtx *ctx, const char *uri, int value)
 Allows to configure automatic MIME header addition handling at profile level. More...
 
axl_bool vortex_profiles_set_mime_type (VortexCtx *ctx, const char *uri, const char *mime_type, const char *transfer_encoding)
 Allows to configure which is the default mime type to be set for those channels created under the given profile. More...
 
axl_bool vortex_profiles_set_received_handler (VortexCtx *ctx, const char *uri, VortexOnFrameReceived received, axlPointer user_data)
 Allows to configure the frame received for a particular profile. More...
 
axl_bool vortex_profiles_unregister (VortexCtx *ctx, const char *uri)
 Allows to unregister a profile already registered with vortex_profiles_register. More...
 

Detailed Description