Use the payloads actual type in unknown_payload_t

This commit is contained in:
Martin Willi
2011-01-05 16:45:43 +01:00
parent 9431023ce6
commit b6c796464d
6 changed files with 53 additions and 40 deletions
+8 -9
View File
@@ -178,17 +178,8 @@ enum payload_type_t{
* used internally to handle a transform attribute like a payload.
*/
CONFIGURATION_ATTRIBUTE = 145,
/**
* A unknown payload has a value of PRIVATE USE space.
*
* This payload type is not sent over wire and just
* used internally to handle a unknown payload.
*/
UNKNOWN_PAYLOAD = 146,
};
/**
* enum names for payload_type_t.
*/
@@ -269,4 +260,12 @@ struct payload_t {
*/
payload_t *payload_create(payload_type_t type);
/**
* Check if a specific payload is implemented, or handled as unkown payload.
*
* @param type type of the payload to check
* @return FALSE if payload type handled as unkown payload
*/
bool payload_is_known(payload_type_t type);
#endif /** PAYLOAD_H_ @}*/