support -X option in rpmmd2solv, make add_autopattern available in bindings
[platform/upstream/libsolv.git] / src / poolid.h
index d8cd658..2363595 100644 (file)
@@ -7,7 +7,7 @@
 
 /*
  * poolid.h
- * 
+ *
  */
 
 #ifndef LIBSOLV_POOLID_H
 #include "pooltypes.h"
 #include "hash.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*-----------------------------------------------
  * Ids with relation
  */
 
 typedef struct _Reldep {
-  Id name;             // "package"
-  Id evr;              // "0:42-3"
-  int flags;           // operation/relation, see REL_x in pool.h
+  Id name;             /* "package" */
+  Id evr;              /* "0:42-3" */
+  int flags;           /* operation/relation, see REL_x in pool.h */
 } Reldep;
 
 extern Id pool_str2id(Pool *pool, const char *, int);
@@ -38,4 +42,8 @@ extern void pool_shrink_strings(Pool *pool);
 extern void pool_shrink_rels(Pool *pool);
 extern void pool_freeidhashes(Pool *pool);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LIBSOLV_POOLID_H */