From 6c758103200c7a7c7634c637e516a2d4af766a3a Mon Sep 17 00:00:00 2001 From: Eric Shienbrood Date: Thu, 17 Jun 2010 10:28:02 -0400 Subject: [PATCH] Clean up white space in the generated header file. Also, include the interface name in the method and signal names, to avoid name collisions. I have corresponding changes in the flimflam modemmgr plugin to accomodate the new names. For a sample of the output, see ~ers/mm-modem.h Review URL: http://codereview.chromium.org/2852010 (cherry picked from commit f9dbea25b8ba4414c77d6dfc94545bf7b5c26e68) --- header-generator.xsl | 96 +++++++++++++++++++++++++++++--------------- 1 file changed, 63 insertions(+), 33 deletions(-) diff --git a/header-generator.xsl b/header-generator.xsl index 36255f34..67f915f2 100644 --- a/header-generator.xsl +++ b/header-generator.xsl @@ -16,7 +16,6 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --> - @@ -24,41 +23,35 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA don't work ideally in the presence of two things that want to use the absence of a prefix, sadly. --> + - - /* */ - - - - - - @@ -71,12 +64,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 'abcdefghijklmnopqrstuvwxyz. ', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ__')"/> -#define "" - +#define "" -/* */ - +/* flag values */ + @@ -90,16 +82,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - + -#define - - +#define + + -/* */ +/* enum values */ @@ -118,7 +110,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define - + + @@ -142,18 +135,39 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 'abcdefghijklmnopqrstuvwxyz. ', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/> -#define "" - - + + + + + + + MANAGER + + + +#define "" + 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_')"/> -#define "" - + + + + + + + MANAGER + + + +#define "" @@ -164,13 +178,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA /* Generated Header file do not edit */ /* */ - /* * version */ - #define MM_MODEMMANAGER_PATH "/org/freedesktop/ModemManager" #define MM_MODEMMANAGER_SERVICE "org.freedesktop.ModemManager" @@ -181,7 +193,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - + @@ -195,16 +207,34 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define "" -/*************** - * Enums/Flags * - ***************/ - - +/*********************** + * Methods/Enums/Flags * + ***********************/ + +/* + * Interface + */ + + + + + + + + + + + + + /********** * Errors * **********/ + + +