9 #ifndef __AFW_CONTENT_TYPE_H__
10 #define __AFW_CONTENT_TYPE_H__
94 #define afw_content_type_object_to_raw(instance, object, options, p, xctx) \
95 afw_content_type_value_to_raw(instance, \
96 afw_value_create_object(object, p, xctx), options, p, xctx)
104 #define afw_content_type_is_application_afw(instance) \
105 ((instance) && (instance)->inf == &afw_content_type_application_afw_inf)
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
AFW_DECLARE_CONST_DATA(afw_utf8_t) afw_s_200
afw_utf8_t for string 200
const afw_memory_t * afw_content_type_value_to_raw(const afw_content_type_t *instance, const afw_value_t *value, const afw_object_options_t *options, const afw_pool_t *p, afw_xctx_t *xctx)
Convert value to the raw in specified pool.
afw_utf8_t * afw_content_type_x_to_utf8_with_options(const afw_content_type_t *instance, const afw_value_t *value, const afw_object_options_t *options, afw_xctx_t *xctx)
void afw_content_type_register(const afw_content_type_t *content_type, afw_xctx_t *xctx)
Register content type with its id and all of its media types.
const afw_value_t * afw_content_type_x_to_object_value_with_ids(const afw_content_type_t *instance, const afw_utf8_t *string, const afw_utf8_t *adaptor_id, const afw_utf8_t *object_type_id, const afw_utf8_t *object_id, afw_xctx_t *xctx)
afw_content_type_application_afw_inf
application/x-afw content type inf.
const afw_stream_t * afw_content_type_application_afw_stream_create(const afw_stream_t *response_stream, const afw_utf8_t *streamId, const afw_utf8_t *info, const afw_pool_t *p, afw_xctx_t *xctx)
Create a stream for content type application/afw.
#define AFW_THROW_ERROR_Z(code, message_z, xctx)
Macro used to set error and 0 rv in xctx and throw it.
Interface afw_content_type_inf_s struct.
Interface afw_content_type public struct.
Struct for memory pointer and size.
Struct for object processing options.
Interface afw_pool public struct.
Interface afw_stream public struct.
NFC normalized UTF-8 string.
Interface afw_value public struct.
Interface afw_xctx public struct.