[asterisk-commits] rizzo: trunk r89530 - in /trunk: formats/format_jpeg.c include/asterisk/image.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 23 03:03:33 CST 2007


Author: rizzo
Date: Fri Nov 23 03:03:33 2007
New Revision: 89530

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89530
Log:
formatting cleanup on the header,
normalization of the assignment of descriptor fields.


Modified:
    trunk/formats/format_jpeg.c
    trunk/include/asterisk/image.h

Modified: trunk/formats/format_jpeg.c
URL: http://svn.digium.com/view/asterisk/trunk/formats/format_jpeg.c?view=diff&rev=89530&r1=89529&r2=89530
==============================================================================
--- trunk/formats/format_jpeg.c (original)
+++ trunk/formats/format_jpeg.c Fri Nov 23 03:03:33 2007
@@ -89,13 +89,13 @@
 }
 
 static struct ast_imager jpeg_format = {
-	"jpg",
-	"JPEG (Joint Picture Experts Group)",
-	"jpg|jpeg",
-	AST_FORMAT_JPEG,
-	jpeg_read_image,
-	jpeg_identify,
-	jpeg_write_image,
+	.name = "jpg",
+	.desc = "JPEG (Joint Picture Experts Group)",
+	.exts = "jpg|jpeg",
+	.format = AST_FORMAT_JPEG,
+	.read_image = jpeg_read_image,
+	.identify = jpeg_identify,
+	.write_image = jpeg_write_image,
 };
 
 static int load_module(void)

Modified: trunk/include/asterisk/image.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/image.h?view=diff&rev=89530&r1=89529&r2=89530
==============================================================================
--- trunk/include/asterisk/image.h (original)
+++ trunk/include/asterisk/image.h Fri Nov 23 03:03:33 2007
@@ -25,22 +25,14 @@
 
 /*! \brief structure associated with registering an image format */
 struct ast_imager {
-	/*! Name */
-	char *name;
-	/*! Description */
-	char *desc;
-	/*! Extension(s) (separated by '|' ) */
-	char *exts;
-	/*! Image format */
-	int format;
-	/*! Read an image from a file descriptor */
-	struct ast_frame *(*read_image)(int fd, int len);
-	/*! Identify if this is that type of file */
-	int (*identify)(int fd);
-	/*! Returns length written */
-	int (*write_image)(int fd, struct ast_frame *frame);
-	/*! For linked list */
-	AST_LIST_ENTRY(ast_imager) list;
+	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 */
+	AST_LIST_ENTRY(ast_imager) list;			/*!< For linked list */
 };
 
 /*! 




More information about the asterisk-commits mailing list