* \retval 0 on success.
* \retval -1 on failure.
*/
-int LiveRegisterDevice(char *dev)
+int LiveRegisterDevice(const char *dev)
{
LiveDevice *pd = SCMalloc(sizeof(LiveDevice));
if (unlikely(pd == NULL)) {
* \retval ptr pointer to the string containing the device
* \retval NULL on error
*/
-LiveDevice *LiveGetDevice(char *name)
+LiveDevice *LiveGetDevice(const char *name)
{
int i = 0;
LiveDevice *pd;
-int LiveBuildDeviceList(char * runmode)
+int LiveBuildDeviceList(const char *runmode)
{
return LiveBuildDeviceListCustom(runmode, "interface");
}
-int LiveBuildDeviceListCustom(char * runmode, char * itemname)
+int LiveBuildDeviceListCustom(const char *runmode, const char *itemname)
{
ConfNode *base = ConfGetNode(runmode);
ConfNode *child;
} LiveDevice;
-int LiveRegisterDevice(char *dev);
+int LiveRegisterDevice(const char *dev);
int LiveGetDeviceCount(void);
char *LiveGetDeviceName(int number);
-LiveDevice *LiveGetDevice(char *dev);
-int LiveBuildDeviceList(char * base);
+LiveDevice *LiveGetDevice(const char *dev);
+int LiveBuildDeviceList(const char *base);
void LiveDeviceHasNoStats(void);
int LiveDeviceListClean(void);
-int LiveBuildDeviceListCustom(char * base, char * itemname);
+int LiveBuildDeviceListCustom(const char *base, const char *itemname);
#ifdef BUILD_UNIX_SOCKET
TmEcode LiveDeviceIfaceStat(json_t *cmd, json_t *server_msg, void *data);