upipe/upipe_helper_upipe.h header reference

Upipe helper functions for public upipe structure More

Header inclusion  

Members  

Macro  

Description  

Upipe helper functions for public upipe structure

Members detail  

#define UPIPE_HELPER_UPIPE(STRUCTURE, UPIPE, SIGNATURE)  

This macro is declared in upipe/upipe_helper_upipe.h source file, line 67.

This macro declares two functions dealing with public and private parts of the allocated pipe structure.

You must add the upipe structure to your private pipe structure:

struct upipe upipe;

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

  • struct upipe *upipe_foo_to_upipe(struct upipe_foo *s)

    Returns a pointer to the public upipe structure.

  • struct upipe_foo *upipe_foo_from_upipe(struct upipe *upipe)

    Returns a pointer to the private upipe_foo structure.

Parameter list:

  • STRUCTURE: name of your private upipe structure
  • UPIPE: name of the struct upipe field of your private upipe structure
  • SIGNATURE: signature of the manager of the upipe

#define _UPIPE_UPIPE_HELPER_UPIPE_H_  

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

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