-/* $Id$ */
#ifndef CTDL_MODULE_H
#define CTDL_MODULE_H
#define MYCURSORS (((ThreadTSD*)pthread_getspecific(ThreadKey))->cursors)
#define MYTID (((ThreadTSD*)pthread_getspecific(ThreadKey))->tid)
#define CT (((ThreadTSD*)pthread_getspecific(ThreadKey))->self)
+#define CTP ((ThreadTSD*)pthread_getspecific(ThreadKey))
/** return the current context list as an array and do it in a safe manner
* The returned data is a copy so only reading is useful
void CtdlPutUser(struct ctdluser *usbuf);
void CtdlPutUserLock(struct ctdluser *usbuf);
int CtdlGetUserByNumber(struct ctdluser *usbuf, long number);
-void CtdlGetRelationship(struct visit *vbuf,
+void CtdlGetRelationship(visit *vbuf,
struct ctdluser *rel_user,
struct ctdlroom *rel_room);
-void CtdlSetRelationship(struct visit *newvisit,
+void CtdlSetRelationship(visit *newvisit,
struct ctdluser *rel_user,
struct ctdlroom *rel_room);
void CtdlMailboxName(char *buf, size_t n, const struct ctdluser *who, const char *prefix);