Commit 57a2babc authored by 's avatar
Browse files

Moved an interal structure definition from the .h to the .c.


git-svn-id: file:///home/svn/mapi/trunk@1307 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent d79f891f
......@@ -23,6 +23,21 @@
#define NUM_STATS 40
typedef struct samp_buffer {
unsigned long read_ptr; //Pointer to the next sample data that can be read
unsigned long write_ptr; //Pointer to where the next sample can be written
char* buf; //Pointer to buffer
int cap_length; //size of sample
unsigned bufsize; //Size of buffer
fhlp_sem_t sem;
unsigned int samppart;
unsigned int keepresults;
unsigned int count1;
unsigned int count2;
} samp_buffer_t;
//Hashing based sampling
/* IP and TCP Packet code from linux kernel */
......
......@@ -19,21 +19,4 @@ struct sample {
unsigned long long timestamp;
};
typedef struct samp_buffer {
unsigned long read_ptr; //Pointer to the next sample data that can be read
unsigned long write_ptr; //Pointer to where the next sample can be written
char* buf; //Pointer to buffer
int cap_length; //size of sample
unsigned bufsize; //Size of buffer
fhlp_sem_t sem;
unsigned int samppart;
unsigned int keepresults;
unsigned int count1;
unsigned int count2;
} samp_buffer_t;
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment