citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

room_ops.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum _POST_TYPE PostType
 

Enumerations

enum  _POST_TYPE { POST_LOGGED_IN , POST_EXTERNAL , CHECK_EXIST , POST_LMTP }
 

Functions

int is_known (struct ctdlroom *roombuf, int roomnum, struct ctdluser *userbuf)
 
int has_newmsgs (struct ctdlroom *roombuf, int roomnum, struct ctdluser *userbuf)
 
int is_zapped (struct ctdlroom *roombuf, int roomnum, struct ctdluser *userbuf)
 
void b_putroom (struct ctdlroom *qrbuf, char *room_name)
 
void b_deleteroom (char *)
 
void lgetfloor (struct floor *flbuf, int floor_num)
 
void lputfloor (struct floor *flbuf, int floor_num)
 
int sort_msglist (long int *listptrs, int oldcount)
 
void list_roomname (struct ctdlroom *qrbuf, int ra, int current_view, int default_view)
 
void convert_room_name_macros (char *towhere, size_t maxlen)
 
int CtdlDoIHavePermissionToPostInThisRoom (char *errmsgbuf, size_t n, const char *RemoteIdentifier, PostType PostPublic, int is_reply)
 
int CtdlDoIHavePermissionToDeleteMessagesFromThisRoom (void)
 
int CtdlDoIHavePermissionToReadMessagesInThisRoom (void)
 

Typedef Documentation

◆ PostType

typedef enum _POST_TYPE PostType

Enumeration Type Documentation

◆ _POST_TYPE

enum _POST_TYPE
Enumerator
POST_LOGGED_IN 
POST_EXTERNAL 
CHECK_EXIST 
POST_LMTP 

Definition at line 12 of file room_ops.h.

Function Documentation

◆ b_deleteroom()

void b_deleteroom ( char *  room_name)

Definition at line 436 of file room_ops.c.

References b_putroom().

Referenced by CtdlDeleteRoom(), CtdlRenameRoom(), and CtdlScheduleRoomForDeletion().

◆ b_putroom()

void b_putroom ( struct ctdlroom qrbuf,
char *  room_name 
)

Definition at line 399 of file room_ops.c.

References cdb_delete(), CDB_ROOMS, cdb_store(), cdbdata::len, qrbuf, ctdlroom::QRmtime, and ROOMNAMELEN.

Referenced by b_deleteroom(), and CtdlPutRoom().

◆ convert_room_name_macros()

void convert_room_name_macros ( char *  towhere,
size_t  maxlen 
)

◆ CtdlDoIHavePermissionToDeleteMessagesFromThisRoom()

int CtdlDoIHavePermissionToDeleteMessagesFromThisRoom ( void  )

Definition at line 109 of file room_ops.c.

References CC, CtdlRoomAccess(), and UA_DELETEALLOWED.

Referenced by cmd_dele(), ical_putics(), and imap_do_store().

◆ CtdlDoIHavePermissionToPostInThisRoom()

int CtdlDoIHavePermissionToPostInThisRoom ( char *  errmsgbuf,
size_t  n,
const char *  RemoteIdentifier,
PostType  PostPublic,
int  is_reply 
)

◆ CtdlDoIHavePermissionToReadMessagesInThisRoom()

int CtdlDoIHavePermissionToReadMessagesInThisRoom ( void  )

Definition at line 31 of file room_ops.c.

References CC, CtdlGetConfigInt(), om_not_logged_in, and om_ok.

Referenced by CtdlOutputMsg(), wiki_history(), and wiki_rev().

◆ has_newmsgs()

int has_newmsgs ( struct ctdlroom roombuf,
int  roomnum,
struct ctdluser userbuf 
)

◆ is_known()

int is_known ( struct ctdlroom roombuf,
int  roomnum,
struct ctdluser userbuf 
)

◆ is_zapped()

int is_zapped ( struct ctdlroom roombuf,
int  roomnum,
struct ctdluser userbuf 
)

◆ lgetfloor()

void lgetfloor ( struct floor flbuf,
int  floor_num 
)

◆ list_roomname()

void list_roomname ( struct ctdlroom qrbuf,
int  ra,
int  current_view,
int  default_view 
)

◆ lputfloor()

void lputfloor ( struct floor flbuf,
int  floor_num 
)

◆ sort_msglist()

int sort_msglist ( long int *  listptrs,
int  oldcount 
)