mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-20 19:33:18 +01:00
- remove unused variables - fix coding style of most function (Indentation, Tabulation, ..) - check the source code using cppcheck tool - change sprintf by snprintf
48 lines
2.4 KiB
C
Executable file
48 lines
2.4 KiB
C
Executable file
/*
|
|
* Copyright (C) 2019 iopsys Software Solutions AB
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License version 2.1
|
|
* as published by the Free Software Foundation
|
|
*
|
|
* Author: Omar Kallel <omar.kallel@pivasoftware.com>
|
|
*
|
|
*/
|
|
|
|
#ifndef UPNP_MONITORING_H
|
|
#define UPNP_MONITORING_H
|
|
|
|
#include <libbbf_api/dmcommon.h>
|
|
|
|
struct upnp_ip_usage_args
|
|
{
|
|
char *systemName;
|
|
char *status;
|
|
char *totalpacketsent;
|
|
char *totalpacketreceived;
|
|
};
|
|
|
|
int upnp_monitoring_get_IPUsageNumberOfEntries(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
int upnp_monitoring_get_StorageNumberOfEntries(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
int upnp_monitoring_get_CurrentTime(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
int upnp_monitoring_get_CPUUsage(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
int upnp_monitoring_get_MemoryUsage(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
int upnp_monitoring_get_SystemName(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
int upnp_monitoring_get_Status(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
int upnp_monitoring_get_TotalPacketsSent(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
int upnp_monitoring_get_TotalPacketsReceived(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
|
|
|
|
int upnp_BrowseIPUsage(struct dmctx *dmctx, DMNODE *parent_node, void *prev_data, char *prev_instance);
|
|
int upnp_CreateIPUsageInstance(char *refparam, struct dmctx *ctx, void *data, char **instance);
|
|
int upnp_DeleteIPUsageInstance(char *refparam, struct dmctx *ctx, void *data, char *instance, unsigned char del_action);
|
|
int upnp_BrowseStorage(struct dmctx *dmctx, DMNODE *parent_node, void *prev_data, char *prev_instance);
|
|
int upnp_CreateStorageInstance(char *refparam, struct dmctx *ctx, void *data, char **instance);
|
|
int upnp_DeleteStorageInstance(char *refparam, struct dmctx *ctx, void *data, char *instance, unsigned char del_action);
|
|
|
|
extern DMLEAF upnpMonitoringOperatingSystemParams[];
|
|
extern DMLEAF upnpMonitoringExecutionEnvironmentParams[];
|
|
extern DMLEAF upnpMonitoringIPUsageParams[];
|
|
extern DMLEAF upnpMonitoringStorageParams[];
|
|
extern DMOBJ upnpMonitoringObj[];
|
|
extern DMLEAF upnpMonitoringParams[];
|
|
#endif
|