add constructor to DeviceOptions

This commit is contained in:
Alexey Rybalchenko 2015-01-15 13:26:15 +01:00 committed by Florian Uhlig
parent ce58ee2302
commit eb33bc8280
11 changed files with 47 additions and 0 deletions

View File

@ -53,6 +53,9 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
text() {}
string text; string text;
} DeviceOptions_t; } DeviceOptions_t;

View File

@ -53,6 +53,10 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), eventSize(0), eventRate(0), ioThreads(0),
outputSocketType(), outputBufSize(0), outputMethod(), outputAddress() {}
string id; string id;
int eventSize; int eventSize;
int eventRate; int eventRate;

View File

@ -53,6 +53,10 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), eventSize(0), eventRate(0), ioThreads(0),
outputSocketType(), outputBufSize(0), outputMethod(), outputAddress() {}
string id; string id;
int eventSize; int eventSize;
int eventRate; int eventRate;

View File

@ -53,6 +53,10 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), ioThreads(0),
inputSocketType(), inputBufSize(0), inputMethod(), inputAddress() {}
string id; string id;
int ioThreads; int ioThreads;
string inputSocketType; string inputSocketType;

View File

@ -53,6 +53,11 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), ioThreads(0),
inputSocketType(), inputBufSize(0), inputMethod(), inputAddress(),
outputSocketType(), outputBufSize(0), outputMethod(), outputAddress() {}
string id; string id;
int ioThreads; int ioThreads;
string inputSocketType; string inputSocketType;

View File

@ -53,6 +53,11 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), ioThreads(0), numInputs(0),
inputSocketType(), inputBufSize(), inputMethod(), inputAddress(),
outputSocketType(), outputBufSize(0), outputMethod(), outputAddress() {}
string id; string id;
int ioThreads; int ioThreads;
int numInputs; int numInputs;

View File

@ -53,6 +53,10 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), eventSize(0), eventRate(0), ioThreads(0),
outputSocketType(), outputBufSize(0), outputMethod(), outputAddress() {}
string id; string id;
int eventSize; int eventSize;
int eventRate; int eventRate;

View File

@ -53,6 +53,10 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), ioThreads(0),
inputSocketType(), inputBufSize(0), inputMethod(), inputAddress() {}
string id; string id;
int ioThreads; int ioThreads;
string inputSocketType; string inputSocketType;

View File

@ -53,6 +53,11 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), ioThreads(0),
inputSocketType(), inputBufSize(0), inputMethod(), inputAddress(),
outputSocketType(), outputBufSize(0), outputMethod(), outputAddress() {}
string id; string id;
int ioThreads; int ioThreads;
string inputSocketType; string inputSocketType;

View File

@ -53,6 +53,10 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), ioThreads(0),
inputSocketType(), inputBufSize(0), inputMethod(), inputAddress() {}
string id; string id;
int ioThreads; int ioThreads;
string inputSocketType; string inputSocketType;

View File

@ -53,6 +53,11 @@ static void s_catch_signals(void)
typedef struct DeviceOptions typedef struct DeviceOptions
{ {
DeviceOptions() :
id(), ioThreads(0), numOutputs(0),
inputSocketType(), inputBufSize(0), inputMethod(), inputAddress(),
outputSocketType(), outputBufSize(), outputMethod(), outputAddress() {}
string id; string id;
int ioThreads; int ioThreads;
int numOutputs; int numOutputs;