Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
Diff: libs/Network/uip/CommandQueue.h
- Revision:
- 3:f151d08d335c
- Parent:
- 2:1df0b61d3b5a
--- a/libs/Network/uip/CommandQueue.h Fri Feb 28 18:52:52 2014 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -#ifndef _COMMANDQUEUE_H_ -#define _COMMANDQUEUE_H_ - -#ifdef __cplusplus - -#include "fifo.h" -#include <string> - -#include "StreamOutput.h" - -class CommandQueue -{ -public: - CommandQueue(); - ~CommandQueue(); - bool pop(); - int add(const char* cmd, StreamOutput *pstream); - int size() {return q.size();} - static CommandQueue* getInstance(); - -private: - typedef struct {char* str; StreamOutput *pstream; } cmd_t; - Fifo<cmd_t> q; - static CommandQueue *instance; - StreamOutput *null_stream; -}; - -#else - -extern int network_add_command(const char * cmd, void *pstream); -#endif - -#endif