Go to the documentation of this file.
21 #ifndef _MW_SRVC_RESOLVE_H
22 #define _MW_SRVC_RESOLVE_H
34 #define mwService_RESOLVE 0x00000015
38 #define SEARCH_ERROR 0x00
114 guint32 id, guint32 code, GList *results,
135 gpointer data, GDestroyNotify cleanup);
char * name
name of the result
Definition: mw_srvc_resolve.h:97
guint32 mwServiceResolve_resolve(struct mwServiceResolve *srvc, GList *queries, enum mwResolveFlag flags, mwResolveHandler handler, gpointer data, GDestroyNotify cleanup)
Inisitate a resolve request.
guint32 code
Definition: mw_srvc_resolve.h:96
char * id
user id
Definition: mw_srvc_resolve.h:88
void(* mwResolveHandler)(struct mwServiceResolve *srvc, guint32 id, guint32 code, GList *results, gpointer data)
Handle the results of a resolve request.
Definition: mw_srvc_resolve.h:113
@ mwResolveCode_PARTIAL
only some of the nested searches were successful
Definition: mw_srvc_resolve.h:70
mwResolveFlag
Definition: mw_srvc_resolve.h:46
@ mwResolveFlag_ALL_DIRS
search all directories, not just the first with a match
Definition: mw_srvc_resolve.h:54
@ mwResolveCode_MULTIPLE
more than one result (occurs when mwResolveFlag_UNIQUE is used and more than one result would have be...
Definition: mw_srvc_resolve.h:74
mwResolveMatchType
Definition: mw_srvc_resolve.h:81
char * desc
description
Definition: mw_srvc_resolve.h:90
GList * matches
list of mwResolveMatch
Definition: mw_srvc_resolve.h:98
struct mwServiceResolve * mwServiceResolve_new(struct mwSession *)
Allocate a new resolve service.
Definition: mw_srvc_resolve.h:95
@ mwResolveFlag_USERS
search for users
Definition: mw_srvc_resolve.h:57
char * name
user name
Definition: mw_srvc_resolve.h:89
@ mwResolveFlag_FIRST
return only the first result
Definition: mw_srvc_resolve.h:51
@ mwResolveMatch_GROUP
Definition: mw_srvc_resolve.h:83
guint32 type
Definition: mw_srvc_resolve.h:91
@ mwResolveFlag_UNIQUE
return unique results or none at all
Definition: mw_srvc_resolve.h:48
void mwServiceResolve_cancelResolve(struct mwServiceResolve *, guint32)
Cancel a resolve request by its generated ID.
@ mwResolveMatch_USER
Definition: mw_srvc_resolve.h:82
@ mwResolveCode_BAD_FORMAT
the name is not resolvable due to its format
Definition: mw_srvc_resolve.h:77
mwResolveCode
Definition: mw_srvc_resolve.h:65
@ mwResolveCode_SUCCESS
successful search
Definition: mw_srvc_resolve.h:67
Definition: mw_srvc_resolve.h:87
@ mwResolveFlag_GROUPS
search for groups
Definition: mw_srvc_resolve.h:60