|
a/libupnpp/control/ohproduct.cxx |
|
b/libupnpp/control/ohproduct.cxx |
|
... |
|
... |
123 |
return UPNP_E_BAD_RESPONSE;
|
123 |
return UPNP_E_BAD_RESPONSE;
|
124 |
|
124 |
|
125 |
return UPNP_E_SUCCESS;
|
125 |
return UPNP_E_SUCCESS;
|
126 |
}
|
126 |
}
|
127 |
|
127 |
|
|
|
128 |
int OHProduct::sourceIndex(int *index)
|
|
|
129 |
{
|
|
|
130 |
string value;
|
|
|
131 |
int ret;
|
|
|
132 |
|
|
|
133 |
if ((ret = runSimpleGet("SourceIndex", "Value", &value)))
|
|
|
134 |
return ret;
|
|
|
135 |
|
|
|
136 |
*index = atoi(value.c_str());
|
|
|
137 |
return 0;
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
int OHProduct::setSourceIndex(int index)
|
|
|
141 |
{
|
|
|
142 |
return runSimpleAction("SetSourceIndex", "Value", index);
|
|
|
143 |
}
|
|
|
144 |
|
|
|
145 |
|
128 |
} // End namespace UPnPClient
|
146 |
} // End namespace UPnPClient
|