Mercury
Classes | Macros | Typedefs | Functions
na_private.h File Reference
#include "na.h"
Include dependency graph for na_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  na_info
 
struct  na_class_info
 
struct  na_context
 
struct  na_class
 

Macros

#define NA_UNUSED
 

Typedefs

typedef void(* na_plugin_cb_t )(struct na_cb_info *callback_info, void *arg)
 
typedef void * na_plugin_context_t
 

Functions

NA_EXPORT na_return_t na_cb_completion_add (na_context_t *context, na_cb_t callback, struct na_cb_info *callback_info, na_plugin_cb_t plugin_callback, void *plugin_callback_args)
 Add callback to context completion queue. More...
 

Macro Definition Documentation

#define NA_UNUSED

Definition at line 22 of file na_private.h.

Typedef Documentation

typedef void(* na_plugin_cb_t)(struct na_cb_info *callback_info, void *arg)

Definition at line 42 of file na_private.h.

typedef void* na_plugin_context_t

Definition at line 46 of file na_private.h.

Function Documentation

NA_EXPORT na_return_t na_cb_completion_add ( na_context_t context,
na_cb_t  callback,
struct na_cb_info callback_info,
na_plugin_cb_t  plugin_callback,
void *  plugin_callback_args 
)

Add callback to context completion queue.

Parameters
context[IN] pointer to context of execution
callback[IN] pointer to function
callback_info[IN] callback info struct
plugin_callback[IN] Callback which will be called after the user callback returns.
plugin_callback_args[IN] Argument to pass to the plugin_callback
Returns
NA_SUCCESS or corresponding NA error code (failure is not an option)