PennMUSH Community
Show
Ignore:
Timestamp:
04/19/06 22:39:01 (3 years ago)
Author:
pennmush
Message:

PennMUSH 1.7.3p5 Archival

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.7.3/hdrs/intrface.h

    r267 r269  
    1 /* intrface.h */ 
    2  
    3 #ifndef __INTERFACE_H 
    4 #define __INTERFACE_H 
    5  
    6 #include "copyrite.h" 
    7 #include "conf.h" 
    8 #include "mushdb.h" 
    9  
    10 /* these symbols must be defined by the interface */ 
    11  
    12 typedef struct descriptor_data DESC; 
    13 extern DESC *cdesc; 
    14  
    15 extern int shutdown_flag;   /* if non-zero, interface should shut down */ 
    16 extern void emergency_shutdown _((void)); 
    17 extern void boot_desc _((DESC *d)); /* remove a player */ 
    18 extern DESC *player_desc _((dbref player)); /* find descriptors */ 
    19 extern DESC *inactive_desc _((dbref player));   /* find descriptors */ 
    20 extern DESC *port_desc _((int port));   /* find descriptors */ 
    21 extern void WIN32_CDECL flag_broadcast _((object_flag_type inflags, 
    22                       object_flag_type intoggles, 
    23                       const char *fmt, 
    24                       ...)) 
    25   __attribute__ ((__format__(__printf__, 3, 4))); 
    26  
    27 extern void raw_notify _((dbref player, const char *msg)); 
    28 extern dbref short_page _((const char *match)); 
    29 extern void do_doing _((dbref player, const char *message)); 
    30  
    31 /* the following symbols are provided by game.c */ 
    32  
    33 /* max length of command argument to process_command */ 
    34 #define MAX_COMMAND_LEN 4096 
    35 #define BUFFER_LEN ((MAX_COMMAND_LEN)*2) 
    36  
    37 #define SBUF_LEN 32 
    38 #define DOING_LEN 40 
    39  
    40 extern void process_command _((dbref player, char *command, 
    41                    dbref cause, int from_port)); 
    42  
    43 /* from player.c */ 
    44 extern dbref create_player _((const char *name, const char *password, 
    45                   const char *host, const char *ip)); 
    46 extern dbref connect_player _((const char *name, const char *password, 
    47                    const char *host, const char *ip)); 
    48 extern void check_last _((dbref player, const char *host, const char *ip)); 
    49 extern void check_lastfailed _((dbref player, const char *host)); 
    50  
    51 extern int init_game_dbs _((void)); 
    52 extern void init_game_config _((const char *conf)); 
    53 extern void dump_database _((void)); 
    54 extern void panic _((const char *message)) __attribute__ ((__noreturn__)); 
    55  
    56 #endif 
     1/* Empty file 
     2 * This used to be a header file, but now isn't. 
     3 * We left the empty file to easy the pain for people using  
     4 * *local.c files that include it. 
     5 */