#ifndef hle_tools_tools_h #define hle_tools_tools_h /* Cesar project {{{ * * Copyright (C) 2011 Spidcom * * <<>> * * }}} */ /** * \file hle/tools/tools.h * \brief HLE tools. * \ingroup hle */ #include "common/module.h" #if MODULE_INCLUDED (hle_tools) # define HLE_TOOLS 1 #else # define HLE_TOOLS 0 #endif #if HLE_TOOLS # include "hal/ipmbox/ipmbox.h" # include "common/ipmbox/msg.h" /* Forward declaration. */ typedef struct hle_tools_t hle_tools_t; BEGIN_DECLS /** * Initialise HLE tools. * \param ipmbox ipmbox context * \return HLE tools context */ hle_tools_t * hle_tools_init (ipmbox_t *ipmbox); /** * Process mbx hle tools message. * \param ctx module context * \param msg the message to process */ void hle_tools_msg_recv (hle_tools_t *ctx, const ipmbox_msg_mbx_t *msg); END_DECLS #else /* !HLE_TOOLS */ # define hle_tools_init(ipmbox) ((void) 0) # define hle_tools_msg_recv(ctx, msg) ((void) 0) #endif /* !HLE_TOOLS */ #endif /* hle_tools_tools_h */