upipe/upipe_helper_sync.h header reference

Upipe helper functions for sync_lost/sync_acquired probe events More

Header inclusion  

Members  

Macro  

Description  

Upipe helper functions for sync_lost/sync_acquired probe events

Members detail  

#define UPIPE_HELPER_SYNC(STRUCTURE, ACQUIRED)  

This macro is declared in upipe/upipe_helper_sync.h source file, line 76.

This macro declares four functions throwing the UPROBE_SYNC_ACQUIRED and UPROBE_SYNC_LOST events in a consistent manner.

You must add a boolean to your private pipe structure, for instance:

bool acquired;

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_sync(struct upipe_foo *s)

    Initializes the acquired field.

  • int upipe_foo_sync_lost(struct upipe_foo *s)

    Throws the UPROBE_SYNC_LOST event, if it hasn't been thrown before.

  • int upipe_foo_sync_acquired(struct upipe_foo *s)

    Throws the UPROBE_SYNC_ACQUIRED event, if it hasn't been thrown before.

  • void upipe_foo_clean_sync(struct upipe_foo *s)

    Currently does nothing.

Parameter list:

  • STRUCTURE: name of your private upipe structure
  • ACQUIRED: name of the bool field of your private upipe structure

#define _UPIPE_UPIPE_HELPER_SYNC_H_  

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

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