Changeset 4698:5dce3c64179e in roaraudio


Ignore:
Timestamp:
12/29/10 01:15:15 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some basic structs and defines for gopher support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/roaraudio/proto_gopher.h

    r4697 r4698  
    3030#define _ROARAUDIO_PROTO_GOPHER_H_ 
    3131 
     32#define ROAR_GOPHER_FLAGS_NONE       0x0000 
     33#define ROAR_GOPHER_FLAGS_PLUS       0x0001 
     34 
     35// offical: 
     36#define ROAR_GOPHER_TYPE_FILE        '0' 
     37#define ROAR_GOPHER_TYPE_DIR         '1' 
     38#define ROAR_GOPHER_TYPE_CSO_PB      '2' /* Item is a CSO phone-book server */ 
     39#define ROAR_GOPHER_TYPE_ERROR       '3' 
     40#define ROAR_GOPHER_TYPE_BINHEXED    '4' /* Item is a BinHexed Macintosh file. */ 
     41#define ROAR_GOPHER_TYPE_DOSBIN      '5' /* Item is DOS binary archive of some sort. */ 
     42#define ROAR_GOPHER_TYPE_UUENCODED   '6' /* Item is a UNIX uuencoded file. */ 
     43#define ROAR_GOPHER_TYPE_SEARCH      '7' /* Item is an Index-Search server. */ 
     44#define ROAR_GOPHER_TYPE_TELNET      '8' 
     45#define ROAR_GOPHER_TYPE_BIN         '9' /* Item is a binary file! */ 
     46#define ROAR_GOPHER_TYPE_REDUNDANT   '+' /* Item is a redundant server */ 
     47#define ROAR_GOPHER_TYPE_TN3270      'T' /* Item points to a text-based tn3270 session. */ 
     48#define ROAR_GOPHER_TYPE_GIF         'g' /* Item is a GIF format graphics file. */ 
     49#define ROAR_GOPHER_TYPE_IMAGE       'I' /* Item is some kind of image file.  Client decides how to display. */ 
     50 
     51// inoffical: 
     52#define ROAR_GOPHER_TYPE_SOUND       's' 
     53#define ROAR_GOPHER_TYPE_MOVIE       ';' 
     54#define ROAR_GOPHER_TYPE_MIME        'M' 
     55#define ROAR_GOPHER_TYPE_HTML        'h' 
     56 
     57struct roar_gopher_menu_item { 
     58 int flags; 
     59 char type; 
     60 const char * name; 
     61 const char * selector; 
     62 const char * host; 
     63 const char * port; 
     64}; 
     65 
     66struct roar_gopher_menu { 
     67 int flags; 
     68 const char * selector; 
     69 struct roar_gopher_menu_item * items; 
     70 size_t items_len; 
     71}; 
     72 
    3273#endif 
    3374 
Note: See TracChangeset for help on using the changeset viewer.