Changeset 3226:295571fec8ca in roaraudio


Ignore:
Timestamp:
01/24/10 08:21:28 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a struct for auth data passing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/auth.h

    r3217 r3226  
    3939 
    4040// Auth Types: 
     41#define ROAR_AUTH_T_AUTO               -1 
    4142#define ROAR_AUTH_T_NONE                0 
    4243#define ROAR_AUTH_T_COOKIE              1 
     
    5253#define ROAR_AUTH_T_IDENT              11 
    5354 
     55struct roar_auth_message { 
     56 int type; 
     57 int stage; 
     58 union { 
     59  char     c[2]; 
     60  uint16_t ui16; 
     61 } reserved; 
     62 void * data; 
     63 size_t len; 
     64}; 
     65 
    5466int roar_auth   (struct roar_connection * con); 
     67 
     68int    roar_str2autht(char * str); 
     69char * roar_autht2str(int auth); 
    5570 
    5671#endif 
Note: See TracChangeset for help on using the changeset viewer.