meanwhile
1.0.2
|
#include <glib.h>
Go to the source code of this file.
Data Structures | |
struct | mwResolveMatch |
struct | mwResolveResult |
Macros | |
#define | mwService_RESOLVE 0x00000015 |
Type identifier for the conference service. | |
#define | SEARCH_ERROR 0x00 |
Return value of mwServiceResolve_search indicating an error. |
Typedefs | |
typedef void(* | mwResolveHandler )(struct mwServiceResolve *srvc, guint32 id, guint32 code, GList *results, gpointer data) |
Handle the results of a resolve request. |
Enumerations | |
enum | mwResolveCode { mwResolveCode_SUCCESS = 0x00000000, mwResolveCode_PARTIAL = 0x00010000, mwResolveCode_MULTIPLE = 0x80020000, mwResolveCode_BAD_FORMAT = 0x80030000 } |
enum | mwResolveFlag { mwResolveFlag_UNIQUE = 0x00000001, mwResolveFlag_FIRST = 0x00000002, mwResolveFlag_ALL_DIRS = 0x00000004, mwResolveFlag_USERS = 0x00000008, mwResolveFlag_GROUPS = 0x00000010 } |
enum | mwResolveMatchType { mwResolveMatch_USER = 0x00000001, mwResolveMatch_GROUP = 0x00000002 } |
Functions | |
void | mwServiceResolve_cancelResolve (struct mwServiceResolve *, guint32) |
Cancel a resolve request by its generated ID. | |
struct mwServiceResolve * | mwServiceResolve_new (struct mwSession *) |
Allocate a new resolve service. | |
guint32 | mwServiceResolve_resolve (struct mwServiceResolve *srvc, GList *queries, enum mwResolveFlag flags, mwResolveHandler handler, gpointer data, GDestroyNotify cleanup) |
Inisitate a resolve request. |
#define mwService_RESOLVE 0x00000015 |
Type identifier for the conference service.
#define SEARCH_ERROR 0x00 |
Return value of mwServiceResolve_search indicating an error.
typedef void(* mwResolveHandler)(struct mwServiceResolve *srvc, guint32 id, guint32 code, GList *results, gpointer data) |
Handle the results of a resolve request.
If there was a cleanup function specified to mwServiceResolve_search, it will be called upon the user data after this callback returns.
srvc | the resolve service |
id | the resolve request ID |
code | return code |
results | list of mwResolveResult |
data | optional user data attached to the request |
enum mwResolveCode |
enum mwResolveFlag |
enum mwResolveMatchType |
void mwServiceResolve_cancelResolve | ( | struct mwServiceResolve * | , |
guint32 | |||
) |
Cancel a resolve request by its generated ID.
The handler function will not be called, and the optional cleanup function will be called upon the optional user data for the request
|
read |
Allocate a new resolve service.
guint32 mwServiceResolve_resolve | ( | struct mwServiceResolve * | srvc, |
GList * | queries, | ||
enum mwResolveFlag | flags, | ||
mwResolveHandler | handler, | ||
gpointer | data, | ||
GDestroyNotify | cleanup | ||
) |
Inisitate a resolve request.
srvc | the resolve service |
queries | list query strings |
flags | search flags |
handler | result handling function |
data | optional user data attached to the request |
cleanup | optional function to clean up user data |