Skip to content

Instantly share code, notes, and snippets.

@klaxa
Created August 14, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klaxa/2c3e25912fd03b22997a to your computer and use it in GitHub Desktop.
Save klaxa/2c3e25912fd03b22997a to your computer and use it in GitHub Desktop.
void *child_next(void *obj, void *prev)
{
HTTPContext *h = obj;
if (!prev && h->hd->priv_data)
return h->hd->priv_data;
return NULL;
}
const AVClass child_class_next(const AVClass *prev)
{
// obviously doesn't compile
return prev ? NULL : &hd->priv_class;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment