From 2b93af99dcc88d2d4a657df0b263fecb74be1a78 Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Fri, 23 Nov 2007 09:03:33 +0000
Subject: [PATCH] formatting cleanup on the header, normalization of the
 assignment of descriptor fields.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 formats/format_jpeg.c    | 14 +++++++-------
 include/asterisk/image.h | 24 ++++++++----------------
 2 files changed, 15 insertions(+), 23 deletions(-)

diff --git a/formats/format_jpeg.c b/formats/format_jpeg.c
index 50bd549b79..4d8d7855d4 100644
--- a/formats/format_jpeg.c
+++ b/formats/format_jpeg.c
@@ -89,13 +89,13 @@ static int jpeg_write_image(int fd, struct ast_frame *fr)
 }
 
 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)
diff --git a/include/asterisk/image.h b/include/asterisk/image.h
index 90979da96f..cfe5119043 100644
--- a/include/asterisk/image.h
+++ b/include/asterisk/image.h
@@ -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 */
 };
 
 /*! 
-- 
GitLab