Changeset 4467:74702c84db56 in roaraudio for roard/include/client.h


Ignore:
Timestamp:
10/10/10 17:18:48 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

implement acclevs like rpld does, check them on command proc however still need to set them correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/include/client.h

    r4343 r4467  
    4747*/ 
    4848 
     49// access level: 
     50enum roard_client_acclev { 
     51 ACCLEV_NONE     = 0, // only very basic commands like NOOP and IDENTIFY 
     52 ACCLEV_IDENTED,      // same as NONE but INDENTIFY worked. 
     53 ACCLEV_CONCTL,       // only allowed to do basic connection things. 
     54 ACCLEV_GUEST,        // guest connection (read only) 
     55 ACCLEV_USER,         // normal user connect (read write) 
     56 ACCLEV_PWRUSER,      // power user, may access other user's clients 
     57 ACCLEV_ALL           // full (admin) access (read write ctl) 
     58}; 
     59 
    4960struct roar_client_nsubscribe { 
    5061 struct roar_subscriber * sub; 
     
    5566 size_t blockc; 
    5667 struct roar_subscriber ** waits; 
     68 enum roard_client_acclev acclev; 
    5769} * g_clients[ROAR_CLIENTS_MAX]; 
    5870 
Note: See TracChangeset for help on using the changeset viewer.