summaryrefslogblamecommitdiffstats
path: root/nserver/src/protocol.h
blob: eec38ab8837aab13d5c65a94470e7d616782c1fc (plain) (tree)
1
2
3
4
5
6
7
8
9


                   
 
                    
                   
                    
                  
                   

                





                       

                        
                                     

                         
               


      
#ifndef _protocol_h
#define _protocol_h


#include <bstrlib.h>
#include <darray.h>
#include <hashmap.h>
#include <stats.h>
#include <tstree.h>
#include <dbg.h>

typedef struct Record {
    bstring key;
    Stats *st;
    int deleted;
} Record;

int sscreate(char *key);
int ssdelete(char *key);
double sssample(char *key, double s);
double ssmean(char *key);
char *ssdump(char *key);
char *sslist();


#endif