aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-05-26 20:39:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-05-26 20:39:49 +0000
commit89ac4df89311e3cc6864c0a9f866ee9bade3f6d7 (patch)
tree56436b58a2a794f2803e57a327c99ef62fe4b39f /include
parent3f668a01214ec834eaea41ca24d05d76e2f0cd84 (diff)
Version 0.1.9 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@326 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/image.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/include/asterisk/image.h b/include/asterisk/image.h
new file mode 100755
index 000000000..5e318dc93
--- /dev/null
+++ b/include/asterisk/image.h
@@ -0,0 +1,45 @@
+/*
+ * Asterisk -- A telephony toolkit for Linux.
+ *
+ * General Asterisk channel definitions.
+ *
+ * Copyright (C) 1999, Mark Spencer
+ *
+ * Mark Spencer <markster@linux-support.net>
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License
+ */
+
+#ifndef _ASTERISK_IMAGE_H
+#define _ASTERISK_IMAGE_H
+
+struct ast_imager {
+ char *name; /* Name */
+ char *desc; /* Description */
+ char *exts; /* Extension(s) (separated by '|' ) */
+ int format; /* Image format */
+ struct ast_frame *(*read_image)(int fd, int len); /* Read an image from a file descriptor */
+ int (*identify)(int fd); /* Identify if this is that type of file */
+ int (*write_image)(int fd, struct ast_frame *frame); /* Returns length written */
+ struct ast_imager *next;
+};
+
+/* Returns non-zero if image transmission is supported */
+extern int ast_supports_images(struct ast_channel *chan);
+
+/* Sends an image */
+extern int ast_send_image(struct ast_channel *chan, char *filename);
+
+/* Make an image from a filename */
+extern struct ast_frame *ast_read_image(char *filename, char *preflang, int format);
+
+/* Register an image format */
+extern int ast_image_register(struct ast_imager *imgdrv);
+
+extern void ast_image_unregister(struct ast_imager *imgdrv);
+
+/* Initialize image stuff */
+extern int ast_image_init(void);
+
+#endif