|
Adaptive Framework
0.9.0
|
Files | |
| file | afw_content_type.h |
| Header Adaptive Framework afw_content_type interface support. | |
Macros | |
| #define | afw_content_type_object_to_raw(instance, object, options, p, xctx) |
| Convert object to the raw in specified pool. More... | |
| #define | afw_content_type_is_application_afw(instance) ((instance) && (instance)->inf == &afw_content_type_application_afw_inf) |
| Determine if content type it application/x-afw. More... | |
Functions | |
| 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) |
| 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) |
| 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. More... | |
| 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. More... | |
| 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. More... | |
Variables | |
| afw_content_type_application_afw_inf | |
| application/x-afw content type inf. | |
Provide afw_content_type interface common support.
| #define afw_content_type_is_application_afw | ( | instance | ) | ((instance) && (instance)->inf == &afw_content_type_application_afw_inf) |
Determine if content type it application/x-afw.
| instance | of content type. |
Definition at line 104 of file afw_content_type.h.
| #define afw_content_type_object_to_raw | ( | instance, | |
| object, | |||
| options, | |||
| p, | |||
| xctx | |||
| ) |
Convert object to the raw in specified pool.
| instance | of content type. |
| object | to convert. |
| options. | |
| p | to use for result. |
| xctx | of caller. |
Definition at line 94 of file afw_content_type.h.
| 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.
| response_stream | this stream will flush to. |
| streamId. | |
| info | for header frame. |
| p | to use. |
| xctx | of caller. |
Definition at line 309 of file afw_content_type_application_afw.c.
| 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.
| content_type | to register. |
| xctx | of caller. |
Definition at line 19 of file afw_content_type.c.
| 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.
| instance | of content type. |
| value | to convert. |
| options. | |
| p | to use for result. |
| xctx | of caller. |
Definition at line 47 of file afw_content_type.c.
| 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 | ||
| ) |
Definition at line 42 of file afw_content_type.h.
| 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 | ||
| ) |
Definition at line 31 of file afw_content_type.h.