upipe/upipe_helper_dvb_string.h header reference

Upipe helper functions writing DVB strings using iconv More

Header inclusion  

Members  

Macro  

Description  

Upipe helper functions writing DVB strings using iconv

Members detail  

#define UPIPE_HELPER_DVB_STRING(STRUCTURE, NATIVE_ENCODING, CURRENT_ENCODING, ICONV_HANDLE)  

This macro is declared in upipe/upipe_helper_dvb_string.h source file, line 78.

This macro declares three functions writing DVB strings using iconv.

You must add two members to your private pipe structure, for instance:

const char *current_encoding;
iconv_t iconv_handle;

You must also declare UPIPE_HELPER_UPIPE prior to using this macro.

Supposing the name of your structure is upipe_foo, it declares:

  • void upipe_foo_init_dvb_string(struct upipe *upipe)

    Initializes the fields.

  • uint8_t *upipe_foo_alloc_dvb_string(struct upipe *upipe,
    const char *string, const char *encoding, size_t *out_length_p)

    Allocates a buffer and stores a DVB string with the given encoding.

  • void upipe_foo_clean_dvb_string(struct upipe *upipe)

    Releases the iconv handle.

Parameter list:

  • STRUCTURE: name of your private upipe structure
  • NATIVE_ENCODING: native encoding to convert to ("UTF-8")
  • CURRENT_ENCODING: name of the const char * field of your private upipe structure
  • ICONV_HANDLE: name of the iconv_t field of your private upipe structure

#define _UPIPE_UPIPE_HELPER_DVB_STRING_H_  

This macro is declared in upipe/upipe_helper_dvb_string.h source file, line 31.

Valid XHTML 1.0 StrictGenerated by cmassiot on Fri Feb 2 23:57:19 2018 using MkDoc