return this->pa_msg->create_attribute_enumerator(this->pa_msg);
}
+METHOD(imc_msg_t, get_encoding, chunk_t,
+ private_imc_msg_t *this)
+{
+ if (this->pa_msg)
+ {
+ return this->pa_msg->get_encoding(this->pa_msg);
+ }
+ return chunk_empty;
+}
+
METHOD(imc_msg_t, destroy, void,
private_imc_msg_t *this)
{
.receive = _receive,
.add_attribute = _add_attribute,
.create_attribute_enumerator = _create_attribute_enumerator,
+ .get_encoding = _get_encoding,
.destroy = _destroy,
},
.connection_id = connection_id,
.receive = _receive,
.add_attribute = _add_attribute,
.create_attribute_enumerator = _create_attribute_enumerator,
+ .get_encoding = _get_encoding,
.destroy = _destroy,
},
.connection_id = connection_id,
enumerator_t* (*create_attribute_enumerator)(imc_msg_t *this);
/**
+ * Get the encoding of the IMC message.
+ *
+ * @return message encoding, internal data
+ */
+ chunk_t (*get_encoding)(imc_msg_t *this);
+
+ /**
* Destroys a imc_msg_t object.
*/
void (*destroy)(imc_msg_t *this);
return this->pa_msg->create_attribute_enumerator(this->pa_msg);
}
+METHOD(imv_msg_t, get_encoding, chunk_t,
+ private_imv_msg_t *this)
+{
+ if (this->pa_msg)
+ {
+ return this->pa_msg->get_encoding(this->pa_msg);
+ }
+ return chunk_empty;
+}
+
METHOD(imv_msg_t, destroy, void,
private_imv_msg_t *this)
{
.add_attribute = _add_attribute,
.delete_attributes = _delete_attributes,
.create_attribute_enumerator = _create_attribute_enumerator,
+ .get_encoding = _get_encoding,
.destroy = _destroy,
},
.connection_id = connection_id,
.add_attribute = _add_attribute,
.delete_attributes = _delete_attributes,
.create_attribute_enumerator = _create_attribute_enumerator,
+ .get_encoding = _get_encoding,
.destroy = _destroy,
},
.connection_id = connection_id,
enumerator_t* (*create_attribute_enumerator)(imv_msg_t *this);
/**
+ * Get the full encoding of an IMV message.
+ *
+ * @return message encoding, internal data
+ */
+ chunk_t (*get_encoding)(imv_msg_t *this);
+
+ /**
* Destroys a imv_msg_t object.
*/
void (*destroy)(imv_msg_t *this);