Mon Nov 6 06:42:47 2006

Asterisk developer's documentation


image.h File Reference

General Asterisk channel definitions for image handling. More...

Go to the source code of this file.

Data Structures

struct  ast_imager
 structure associated with registering an image format More...

Functions

int ast_image_init (void)
int ast_image_register (struct ast_imager *imgdrv)
void ast_image_unregister (struct ast_imager *imgdrv)
ast_frameast_read_image (char *filename, char *preflang, int format)
int ast_send_image (struct ast_channel *chan, char *filename)
int ast_supports_images (struct ast_channel *chan)


Detailed Description

General Asterisk channel definitions for image handling.

Definition in file image.h.


Function Documentation

int ast_image_init ( void   ) 

Initializes all the various image stuff. Basically just registers the cli stuff Returns 0 all the time

int ast_image_register ( struct ast_imager imgdrv  ) 

Parameters:
imgdrv Populated ast_imager structure with info to register Registers an image format Returns 0 regardless

void ast_image_unregister ( struct ast_imager imgdrv  ) 

Parameters:
imgdrv pointer to the ast_imager structure you wish to unregister Unregisters the image format passed in Returns nothing

struct ast_frame* ast_read_image ( char *  filename,
char *  preflang,
int  format 
)

Parameters:
filename filename of image to prepare
preflang preferred language to get the image...?
format the format of the file Make an image from a filename ??? No estoy positivo Returns an ast_frame on success, NULL on failure

int ast_send_image ( struct ast_channel chan,
char *  filename 
)

Parameters:
chan channel to send image on
filename filename of image to send (minus extension) Sends an image on the given channel. Returns 0 on success, -1 on error

int ast_supports_images ( struct ast_channel chan  ) 

Parameters:
chan channel to check Checks the channel to see if it supports the transmission of images Returns non-zero if image transmission is supported


Generated on Mon Nov 6 06:42:47 2006 for Asterisk - the Open Source PBX by  doxygen 1.5.1