42#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__)
43#error "Only <gnunet_util_lib.h> can be included directly."
46#ifndef GNUNET_CLIENT_LIB_H
47#define GNUNET_CLIENT_LIB_H
struct GNUNET_MQ_MessageHandlers handlers[]
static void error_handler(void *cls, enum GNUNET_MQ_Error error)
Function called on connection trouble.
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
static char * service_name
Option -s: service name (hash to get service descriptor)
General-purpose message queue.
struct GNUNET_MQ_Handle * GNUNET_CLIENT_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, const char *service_name, const struct GNUNET_MQ_MessageHandler *handlers, GNUNET_MQ_ErrorHandler error_handler, void *error_handler_cls)
Create a message queue to connect to a GNUnet service.
enum GNUNET_GenericReturnValue GNUNET_CLIENT_test(const struct GNUNET_CONFIGURATION_Handle *cfg, const char *service_name)
Test if the port or UNIXPATH of the given service_name is in use and thus (most likely) the respectiv...
GNUNET_GenericReturnValue
Named constants for return values.
void(* GNUNET_MQ_ErrorHandler)(void *cls, enum GNUNET_MQ_Error error)
Generic error handler, called with the appropriate error code and the same closure specified at the c...
Handle to a message queue.
void * error_handler_cls
Closure for the error handler.
Message handler for a specific message type.