/usr/include/meanwhile/mw_srvc_place.h is in libmeanwhile-dev 1.0.2-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | /*
Meanwhile - Unofficial Lotus Sametime Community Client Library
Copyright (C) 2004 Christopher (siege) O'Brien
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _MW_SRVC_PLACE_H
#define _MW_SRVC_PLACE_H
#include <glib.h>
#include "mw_common.h"
#ifdef __cplusplus
extern "C" {
#endif
/** Type identifier for the place service */
#define mwService_PLACE 0x80000022
/** @struct mwServicePlace */
struct mwServicePlace;
/** @struct mwPlace */
struct mwPlace;
struct mwPlaceHandler {
void (*opened)(struct mwPlace *place);
void (*closed)(struct mwPlace *place, guint32 code);
void (*peerJoined)(struct mwPlace *place,
const struct mwIdBlock *peer);
void (*peerParted)(struct mwPlace *place,
const struct mwIdBlock *peer);
void (*peerSetAttribute)(struct mwPlace *place,
const struct mwIdBlock *peer,
guint32 attr, struct mwOpaque *o);
void (*peerUnsetAttribute)(struct mwPlace *place,
const struct mwIdBlock *peer,
guint32 attr);
void (*message)(struct mwPlace *place,
const struct mwIdBlock *who,
const char *msg);
void (*clear)(struct mwServicePlace *srvc);
};
enum mwPlacePeerAttribute {
mwPlacePeer_TYPING = 0x00000008,
};
struct mwServicePlace *
mwServicePlace_new(struct mwSession *session,
struct mwPlaceHandler *handler);
struct mwPlaceHandler *
mwServicePlace_getHandler(struct mwServicePlace *srvc);
const GList *mwServicePlace_getPlaces(struct mwServicePlace *srvc);
struct mwPlace *mwPlace_new(struct mwServicePlace *srvc,
const char *name, const char *title);
struct mwServicePlace *mwPlace_getService(struct mwPlace *place);
const char *mwPlace_getName(struct mwPlace *place);
const char *mwPlace_getTitle(struct mwPlace *place);
int mwPlace_open(struct mwPlace *place);
int mwPlace_destroy(struct mwPlace *place, guint32 code);
/** returns a GList* of struct mwIdBlock*. The GList will need to be
freed after use, the mwIdBlock structures should not be modified
or freed */
GList *mwPlace_getMembers(struct mwPlace *place);
int mwPlace_sendText(struct mwPlace *place, const char *msg);
/** send a legacy invitation for this place to a user. The user will
receive an apparent invitation from a Conference (rather than a
Place) */
int mwPlace_legacyInvite(struct mwPlace *place,
struct mwIdBlock *idb,
const char *message);
int mwPlace_setAttribute(struct mwPlace *place, guint32 attrib,
struct mwOpaque *data);
int mwPlace_unsetAttribute(struct mwPlace *place, guint32 attrib);
void mwPlace_setClientData(struct mwPlace *place,
gpointer data, GDestroyNotify clean);
gpointer mwPlace_getClientData(struct mwPlace *place);
void mwPlace_removeClientData(struct mwPlace *place);
#ifdef __cplusplus
}
#endif
#endif /* _MW_SRVC_PLACE_H */
|