summaryrefslogtreecommitdiff
path: root/src/nm-types.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-08-30 09:45:32 -0500
committerDan Williams <dcbw@redhat.com>2012-12-17 17:01:10 -0600
commit7a3c53e8ffc064c060e91bf018655ded5c6cd51d (patch)
tree60f09f6e1f9aa581803c8193ece58bfec2887f5c /src/nm-types.h
parentcfb391952db0404d4a91f9ea5c97ceb8273727a7 (diff)
downloadNetworkManager-7a3c53e8ffc064c060e91bf018655ded5c6cd51d.tar.gz
core: add header for NM object types
Helps prevent #include loops when two objects need each other's headers, like NMActiveConnection and NMDevice.
Diffstat (limited to 'src/nm-types.h')
-rw-r--r--src/nm-types.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nm-types.h b/src/nm-types.h
new file mode 100644
index 0000000000..c558d7ba51
--- /dev/null
+++ b/src/nm-types.h
@@ -0,0 +1,26 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* NetworkManager -- Network link manager
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Copyright (C) 2012 Red Hat, Inc.
+ */
+
+#ifndef NM_TYPES_H
+#define NM_TYPES_H
+
+typedef struct _NMDevice NMDevice;
+
+#endif /* NM_TYPES_H */