Asterisk.org: Developer Documentation (28 Oct 2009)

Wed Oct 28 15:49:30 2009

## Asterisk developer's documentation

# ast_generator Struct Reference

`#include <channel.h>`

## Data Fields

void *(* | alloc )(struct ast_channel *chan, void *params)
int(* | generate )(struct ast_channel *chan, void *data, int len, int samples)
void(* | release )(struct ast_channel *chan, void *data)

## Detailed Description

Definition at line 133 of file channel.h.

## Field Documentation

void*(* alloc)(struct ast_channel *chan, void *params)

Referenced by ast_activate_generator().

int(* generate)(struct ast_channel *chan, void *data, int len, int samples)

Referenced by ast_read(), cb_events(), and generator_force().

void(* release)(struct ast_channel *chan, void *data)

Referenced by ast_activate_generator(), ast_deactivate_generator(), and ast_hangup().

The documentation for this struct was generated from the following file:

- channel.h