aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-08-17 11:15:20 +0200
committerAleksander Morgado <aleksander@lanedo.com>2011-08-17 16:21:21 +0200
commit15f77d131a763fc6044ca1fa1e6adb8e93b36d31 (patch)
treed8bb5b78fd1dedc366306df1099386c96638ba19
parent6eb32c72dac22edf2d0e1841f9a040cab3cebb4a (diff)
api: add license and header include guards
-rw-r--r--header-generator.xsl31
-rw-r--r--introspection/all.xml2
2 files changed, 28 insertions, 5 deletions
diff --git a/header-generator.xsl b/header-generator.xsl
index 67f915f2..fc33bc6c 100644
--- a/header-generator.xsl
+++ b/header-generator.xsl
@@ -177,12 +177,33 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<xsl:template match="/tp:spec">
/* Generated Header file do not edit */
-/* <xsl:value-of select="tp:title"/> */
-<xsl:if test="tp:version">
+
/*
- * <xsl:text> version </xsl:text> <xsl:value-of select="tp:version"/>
+ * <xsl:value-of select="tp:title"/>
+ * version <xsl:value-of select="tp:version"/>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * 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 Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ * Copyright (C) 2008 - 2009 Novell, Inc.
+ * Copyright (C) 2009 - 2011 Red Hat, Inc.
*/
-</xsl:if>
+
+#ifndef _MODEM_MANAGER_H_
+#define _MODEM_MANAGER_H_
+
#define MM_MODEMMANAGER_PATH "/org/freedesktop/ModemManager"
#define MM_MODEMMANAGER_SERVICE "org.freedesktop.ModemManager"
@@ -232,6 +253,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
**********/
<xsl:apply-templates select="tp:errors"/>
+#endif /* _MODEM_MANAGER_H_ */
+
<!-- Ensure that the file ends with a newline -->
<xsl:text>
</xsl:text>
diff --git a/introspection/all.xml b/introspection/all.xml
index ff174d81..0d91cbdf 100644
--- a/introspection/all.xml
+++ b/introspection/all.xml
@@ -2,7 +2,7 @@
xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"
xmlns:xi="http://www.w3.org/2001/XInclude">
- <tp:title>ModemManager D-Bus Interface Specification</tp:title>
+ <tp:title>ModemManager Interface Specification</tp:title>
<tp:version>0.5</tp:version>
<tp:copyright>Copyright (C) 2008 Novell, Inc.</tp:copyright>
<tp:copyright>Copyright (C) 2008 - 2010 Red Hat, Inc.</tp:copyright>