git-svn-id: http://webrtc.googlecode.com/svn/trunk@4 4adac7df-926f-26a2-2b94-8c16560cd09d

This commit is contained in:
niklase@google.com
2011-05-30 11:22:19 +00:00
parent 01813fe945
commit 77ae29bc81
1153 changed files with 404089 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#ifndef MODULE_H
#define MODULE_H
#include "typedefs.h"
namespace webrtc
{
class Module
{
public:
// Returns version of the module and its components.
virtual int32_t Version(char* version,
uint32_t& remainingBufferInBytes,
uint32_t& position) const = 0;
// Change the unique identifier of this object.
virtual int32_t ChangeUniqueId(const int32_t id) = 0;
// Returns the number of milliseconds until the module want a worker
// thread to call Process.
virtual int32_t TimeUntilNextProcess() = 0 ;
// Process any pending tasks such as timeouts.
virtual int32_t Process() = 0 ;
protected:
virtual ~Module() {}
};
} // namespace webrtc
#endif // MODULE_H