![Logo](../../RDK-Logo.png) |
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
50 #ifndef _SERVICE_STORAGE_PHYMED_H_
51 #define _SERVICE_STORAGE_PHYMED_H_
53 #include "hostIf_tr69ReqHandler.h"
54 #include "hostIf_utils.h"
55 #include "hostIf_updateHandler.h"
56 #define MAX_PHY_MED_ALIAS_LEN 64
57 #define MAX_PHY_MED_NAME_LEN 64
58 #define MAX_PHY_MED_VENDOR_LEN 64
59 #define MAX_PHY_MED_MODEL_LEN 128
60 #define MAX_PHY_MED_SERIAL_NUM_LEN 64
61 #define MAX_PHY_MED_FIRMWARE_VER_LEN 64
62 #define MAX_PHY_MED_CONNECTION_TYPE_LEN 64
63 #define MAX_PHY_MED_STATUS_LEN 64
64 #define MAX_PHY_MED_HEALTH_LEN 64
72 char alias[MAX_PHY_MED_ALIAS_LEN];
73 char name[MAX_PHY_MED_NAME_LEN];
74 char vendor[MAX_PHY_MED_VENDOR_LEN];
75 char model[MAX_PHY_MED_MODEL_LEN];
76 char serialNumber[MAX_PHY_MED_SERIAL_NUM_LEN];
77 char firmwareVersion[MAX_PHY_MED_FIRMWARE_VER_LEN];
78 char connectionType[MAX_PHY_MED_CONNECTION_TYPE_LEN];
80 unsigned int capacity;
81 char status[MAX_PHY_MED_STATUS_LEN];
84 char health[MAX_PHY_MED_HEALTH_LEN];
117 static GHashTable *phyMedHash;
119 static GMutex *m_mutex;
129 int getMediumName(
char* mediumName);
131 bool isSmartCapable();
133 int isMediumHealthOK();
135 static int rebuildHash();
137 static int getPhysicalMediumNumberOfEntries(
int storageServiceInstanceNumber);
139 int storageServiceInstanceNumber;
147 static GList* getAllInstances();
149 static void closeAllInstances();
151 static int get_Device_Service_StorageMedium_ClientNumberOfEntries(
HOSTIF_MsgData_t *stMsgData,
int dev_id);
153 static int updateCallbackFunction(updateCallback cb);
int get_Device_Service_StorageMedium_Status(HOSTIF_MsgData_t *stMsgData)
This function get the status of the storage service medium. Currently not implemented.
int get_Device_Service_StorageMedium_Health(HOSTIF_MsgData_t *stMsgData)
This function get the health of the storage service medium.
int get_Device_Service_StorageMedium_Alias(HOSTIF_MsgData_t *stMsgData)
This function get the alias of storage service medium. Currently not implemented.
int get_Device_Service_StorageMedium_SerialNumber(HOSTIF_MsgData_t *stMsgData)
This function get the serial number of the storage service medium. Currently not implemented.
int get_Device_Service_StorageMedium_HotSwappable(HOSTIF_MsgData_t *stMsgData)
This function get the storage service medium hot swappable. Currently not implemented.
int get_Device_Service_StorageMedium_FirmwareVersion(HOSTIF_MsgData_t *stMsgData)
This function get the firmware version of the storage service medium. Currently not implemented.
ePhysicalMediumMembers_t
It contains the members variables of the ePhysicalMediumMembers_t enum.
int get_Device_Service_StorageMedium_Removable(HOSTIF_MsgData_t *stMsgData)
This function get the storage service medium removable. Currently not implemented.
hostIf_PhysicalMedium(int StorageServiceInstanceNumber, int dev_id)
Class Constructor of the class hostIf_PhysicalMedium.
int get_Device_Service_StorageMedium_Vendor(HOSTIF_MsgData_t *stMsgData)
This function get the vendor of the storage service medium. Currently not implemented.
void getLock()
This function get the lock before setting or getting the attributes of the host interface physical me...
This class provides the TR-069 host interface physical medium information.
int get_Device_Service_StorageMedium_SMARTCapable(HOSTIF_MsgData_t *stMsgData)
This function get the SMART capability of the storage service medium.
int get_Device_Service_StorageMedium_Name(HOSTIF_MsgData_t *stMsgData)
This function get the name of the storage service medium.
int get_Device_Service_StorageMedium_Model(HOSTIF_MsgData_t *stMsgData)
This function get the model number of the storage service medium. Currently not implemented.
It contains the members variables of the physicalMediumMembers structure.
void releaseLock()
This function use to release the lock before setting or getting the attributes of the host interface ...
int get_Device_Service_StorageMedium_ConnectionType(HOSTIF_MsgData_t *stMsgData)
This function get the connection type of the storage service medium. Currently not implemented.
int get_Device_Service_StorageMedium_Uptime(HOSTIF_MsgData_t *stMsgData)
This function get the uptime of the storage service medium. Currently not implemented.