The function header is defined below:
/**
* \fn int fx_add_buddylist(const char* name, EventListener func, void *args)
* \brief rename the group.
*
* \param name The group name which you want to add.
* \param func The send sms operate's callback function's address, and the operate result will pass to this function.
* \param args The send_sms operate's callback function's args.
*
* \return 0 if fail immediately, or can get the result from func.
*/
FX_EXPORT int fx_add_buddylist(const char* name, EventListener func, void *args);
/**
* \defgroup cb_func Event CallBack Function
* @{
*/
/**
* \var typedef void (*EventListener) (int message, WPARAM wParam, LPARAM lParam, void* args)
* brief the callback function of fetion event.
*
*
* \param message The fetion event type.
* \sa events
*/
typedef void (*EventListener) (int message, WPARAM wParam, LPARAM lParam, void* args);
/** @} end of cb_func */
I don't know how to use EventListener to get the result of fx_add_buddylist() (eg if i failed to add buddy or not).