Changeset 5826 for luci2/upsd/core.h

Show
Ignore:
Timestamp:
03/15/10 18:37:17 (3 years ago)
Author:
Cyrus
Message:

upsd: Use libmbox

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci2/upsd/core.h

    r5807 r5826  
    1313    #define UPSD_LOCAL 
    1414#endif 
     15 
     16#ifdef UPSD_STANDALONE 
     17#define UHTBL_API UPSD_LOCAL 
     18#endif 
     19 
     20#include "libmbox/hash.h" 
     21#include "libmbox/uhtbl.h" 
    1522 
    1623#define UPSD_LENGTHOF(array) (sizeof(array) / sizeof(*array)) 
     
    6673/* Event dataset */ 
    6774struct upsd_event { 
     75    uhtbl_head_t __head; 
    6876    uint16_t receiving; 
    6977    uint16_t emitting; 
     
    97105}; 
    98106 
    99  
    100 #include "cbi2/hmap.h" 
    101  
    102107struct upsd_state { 
    103     cbi2_hmap_t *events; 
     108    uhtbl_t events; 
    104109    upsd_extension_t *extensions; 
    105110    upsd_report_t *report;