X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Froom_ops.h;h=880ff8219c4d30a85e4457f7b00b17d257e8be3d;hp=d099459c108d521cbe414066de7ceab84a57f093;hb=c1b1936458ccd0d517148615a6ed753f6a3e30c2;hpb=6b59ff3184393801bb0b4d96359e2fbfac13f38a diff --git a/citadel/room_ops.h b/citadel/room_ops.h index d099459c1..880ff8219 100644 --- a/citadel/room_ops.h +++ b/citadel/room_ops.h @@ -5,49 +5,13 @@ int has_newmsgs (struct ctdlroom *roombuf, int roomnum, struct ctdluser *userbuf); int is_zapped (struct ctdlroom *roombuf, int roomnum, struct ctdluser *userbuf); -int getroom(struct ctdlroom *qrbuf, char *room_name); void b_putroom(struct ctdlroom *qrbuf, char *room_name); -void putroom(struct ctdlroom *); void b_deleteroom(char *); -int lgetroom(struct ctdlroom *qrbuf, char *room_name); -void lputroom(struct ctdlroom *qrbuf); -void getfloor (struct floor *flbuf, int floor_num); -struct floor *cgetfloor(int floor_num); void lgetfloor (struct floor *flbuf, int floor_num); -void putfloor (struct floor *flbuf, int floor_num); void lputfloor (struct floor *flbuf, int floor_num); int sort_msglist (long int *listptrs, int oldcount); -void usergoto (char *where, int display_result, int transiently, - int *msgs, int *new); -unsigned create_room(char *new_room_name, - int new_room_type, - char *new_room_pass, - int new_room_floor, - int really_create, - int avoid_access, - int new_room_view); -void ForEachRoom(void (*CallBack)(struct ctdlroom *EachRoom, void *out_data), - void *in_data); -void schedule_room_for_deletion(struct ctdlroom *qrbuf); -void delete_room(struct ctdlroom *qrbuf); void list_roomname(struct ctdlroom *qrbuf, int ra, int current_view, int default_view); -int is_noneditable(struct ctdlroom *qrbuf); -void CtdlRoomAccess(struct ctdlroom *roombuf, struct ctdluser *userbuf, - int *result, int *view); -int CtdlDoIHavePermissionToDeleteThisRoom(struct ctdlroom *qr); -int CtdlRenameRoom(char *old_name, char *new_name, int new_floor); void convert_room_name_macros(char *towhere, size_t maxlen); -/* - * Possible return values for CtdlRenameRoom() - */ -enum { - crr_ok, /* success */ - crr_room_not_found, /* room not found */ - crr_already_exists, /* new name already exists */ - crr_noneditable, /* cannot edit this room */ - crr_invalid_floor, /* target floor does not exist */ - crr_access_denied /* not allowed to edit this room */ -};