- Moving helix parser to the API
authorStefan Schubert <schubi@suse.de>
Tue, 12 Feb 2008 09:42:06 +0000 (09:42 +0000)
committerStefan Schubert <schubi@suse.de>
Tue, 12 Feb 2008 09:42:06 +0000 (09:42 +0000)
- deptestomatic: Using helix-file for fallback if the solv-file does not
  exist.

src/CMakeLists.txt
src/repo_helix.c [moved from tools/repo_helix.c with 100% similarity]
src/repo_helix.h [moved from tools/repo_helix.h with 61% similarity]
tools/CMakeLists.txt

index 824f4de..b396727 100644 (file)
@@ -1,10 +1,10 @@
 
 SET(libsatsolver_SRCS bitmap.c  poolarch.c  poolvendor.c  poolid.c strpool.c dirpool.c
-solver.c repo_solv.c evr.c pool.c queue.c   repo.c  repodata.c util.c policy.c)
+solver.c repo_solv.c repo_helix.c evr.c pool.c queue.c   repo.c  repodata.c util.c policy.c)
 
 ADD_LIBRARY(satsolver STATIC ${libsatsolver_SRCS})
 
-SET(libsatsolver_HEADERS bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h poolid.h pooltypes.h queue.h solvable.h solver.h repo.h repodata.h repo_solv.h util.h strpool.h dirpool.h)
+SET(libsatsolver_HEADERS bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h poolid.h pooltypes.h queue.h solvable.h solver.h repo.h repodata.h repo_solv.h repo_helix.h util.h strpool.h dirpool.h)
 
 SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" )
 
similarity index 100%
rename from tools/repo_helix.c
rename to src/repo_helix.c
similarity index 61%
rename from tools/repo_helix.h
rename to src/repo_helix.h
index 59d3996..4ab0862 100644 (file)
  * 
  */
 
-#ifndef REPO_HELIX_H
-#define REPO_HELIX_H
+#ifndef SATSOLVER_REPO_HELIX_H
+#define SATSOLVER_REPO_HELIX_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #include <stdio.h>
 #include "pool.h"
@@ -19,4 +23,9 @@
 
 extern void repo_add_helix(Repo *repo, FILE *fp);
 
-#endif /* REPO_HELIX_H */
+#ifdef __cplusplus
+}
+#endif
+    
+
+#endif /* SATSOLVER_REPO_HELIX_H */
index 43c35df..fc048a4 100644 (file)
@@ -14,7 +14,7 @@ SET(rpmmd2solv_REPOS rpmmd2solv.c repo_rpmmd.h repo_rpmmd.c repo_write.c common_
 ADD_EXECUTABLE( rpmmd2solv ${rpmmd2solv_REPOS} )
 TARGET_LINK_LIBRARIES( rpmmd2solv satsolver ${EXPAT_LIBRARY})
 
-SET(helix2solv_REPOS helix2solv.c repo_helix.h repo_helix.c repo_write.c common_write.c )
+SET(helix2solv_REPOS helix2solv.c repo_write.c common_write.c )
 ADD_EXECUTABLE( helix2solv ${helix2solv_REPOS} )
 TARGET_LINK_LIBRARIES( helix2solv satsolver ${EXPAT_LIBRARY})