diff --git a/rm_transport.h b/rm_transport.h
index 03e3b93356e1925bc78e87b0451fe76f588e3a35..426a3cbe7117638bce5985353fd492a14d5f79c8 100644 (file)
--- a/rm_transport.h
+++ b/rm_transport.h
*
* \par
* ============================================================================
- * @n (C) Copyright 2012-2013, Texas Instruments, Inc.
+ * @n (C) Copyright 2012-2014, Texas Instruments, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -311,6 +311,64 @@ int32_t Rm_transportReconfig (Rm_TransportHandle transportHandle, const Rm_Trans
*/
int32_t Rm_transportUnregister (Rm_TransportHandle transportHandle);
+/**
+ * @b Description
+ * @n
+ * This function returns the RM instance name from which the service
+ * encapsulated within the RM packet originated
+ *
+ * Restrictions: This API is only valid for Rm_pktType_RESOURCE_REQUEST
+ * and Rm_pktType_NAMESERVER_REQUEST packet types
+ *
+ * @param[in] pkt
+ * RM packet to extract service source instance name from.
+ *
+ * @param[out] serviceInstName
+ * Pointer to a character array that will contain the RM instance name
+ * that originated the service request. The character array MUST be
+ * #RM_NAME_MAX_CHARS bytes in length
+ *
+ * @param[in] charBufLen
+ * Length of the provided pktInstName buffer
+ *
+ * @retval
+ * Success - #RM_OK
+ * @retval
+ * Failure - #RM_ERROR_PKT_AND_SERVICE_SRC_NOT_AVAIL
+ * Failure - #RM_ERROR_SRC_NAME_BUF_INVALID_SIZE
+ */
+int32_t Rm_receiveGetPktServiceSrcName(const Rm_Packet *pkt, char *serviceInstName,
+ int32_t charBufLen);
+
+/**
+ * @b Description
+ * @n
+ * This function returns the RM instance name from which the RM packet
+ * originated
+ *
+ * Restrictions: This API is only valid for Rm_pktType_RESOURCE_REQUEST
+ * and Rm_pktType_NAMESERVER_REQUEST packet types
+ *
+ * @param[in] pkt
+ * RM packet to extract packet source instance name from.
+ *
+ * @param[out] pktInstName
+ * Pointer to a character array that will contain the RM instance name
+ * that originated the RM request packet. The character array MUST be
+ * #RM_NAME_MAX_CHARS bytes in length
+ *
+ * @param[in] charBufLen
+ * Length of the provided pktInstName buffer
+ *
+ * @retval
+ * Success - #RM_OK
+ * @retval
+ * Failure - #RM_ERROR_PKT_AND_SERVICE_SRC_NOT_AVAIL
+ * Failure - #RM_ERROR_SRC_NAME_BUF_INVALID_SIZE
+ */
+int32_t Rm_receiveGetPktSrcName(const Rm_Packet *pkt, char *pktInstName,
+ int32_t charBufLen);
+
/**
* @b Description
* @n