api: add license and header include guards

This commit is contained in:
Aleksander Morgado
2011-08-17 11:15:20 +02:00
parent 6eb32c72da
commit 15f77d131a
2 changed files with 28 additions and 5 deletions

View File

@@ -177,12 +177,33 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
<xsl:template match="/tp:spec"> <xsl:template match="/tp:spec">
/* Generated Header file do not edit */ /* 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_PATH "/org/freedesktop/ModemManager"
#define MM_MODEMMANAGER_SERVICE "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"/> <xsl:apply-templates select="tp:errors"/>
#endif /* _MODEM_MANAGER_H_ */
<!-- Ensure that the file ends with a newline --> <!-- Ensure that the file ends with a newline -->
<xsl:text> <xsl:text>
</xsl:text> </xsl:text>

View File

@@ -2,7 +2,7 @@
xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"
xmlns:xi="http://www.w3.org/2001/XInclude"> 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:version>0.5</tp:version>
<tp:copyright>Copyright (C) 2008 Novell, Inc.</tp:copyright> <tp:copyright>Copyright (C) 2008 Novell, Inc.</tp:copyright>
<tp:copyright>Copyright (C) 2008 - 2010 Red Hat, Inc.</tp:copyright> <tp:copyright>Copyright (C) 2008 - 2010 Red Hat, Inc.</tp:copyright>