]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Start moving the attribute store into the library.
authorMichael Matz <matz@suse.de>
Sat, 8 Dec 2007 00:20:21 +0000 (00:20 +0000)
committerMichael Matz <matz@suse.de>
Sat, 8 Dec 2007 00:20:21 +0000 (00:20 +0000)
src/CMakeLists.txt
src/attr_store.c [moved from tools/attr_store.c with 100% similarity]
src/attr_store.h [moved from tools/attr_store.h with 100% similarity]
src/attr_store_p.h [moved from tools/attr_store_p.h with 97% similarity]
src/fastlz.c [moved from tools/fastlz.c with 100% similarity]
tools/CMakeLists.txt

index cd4a10bfca2108a13451b924fb9a73f03ffba806..0122505bac342aa1dbfd92232f8d97f55fefcb43 100644 (file)
@@ -1,10 +1,10 @@
 
-SET(libsatsolver_SRCS bitmap.c  poolarch.c  poolvendor.c  poolid.c strpool.c
+SET(libsatsolver_SRCS attr_store.c bitmap.c  poolarch.c  poolvendor.c  poolid.c strpool.c
 solver.c repo_solv.c evr.c pool.c queue.c   repo.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 repo_solv.h util.h strpool.h)
+SET(libsatsolver_HEADERS attr_store.h 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 repo_solv.h util.h strpool.h)
 
 SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3 -Wall -fPIC" )
 
similarity index 100%
rename from tools/attr_store.c
rename to src/attr_store.c
similarity index 100%
rename from tools/attr_store.h
rename to src/attr_store.h
similarity index 97%
rename from tools/attr_store_p.h
rename to src/attr_store_p.h
index a5dd2149e8044a1bdd42c051503fb9d1222ea375..d23d2c8b4cc04e721fb42a3647a88d3d212800d8 100644 (file)
@@ -75,6 +75,8 @@ struct _Attrstore
   unsigned int packed:1;
 };
 
+void add_attr_from_file (Attrstore *s, unsigned entry, Id name, int type, FILE *fp);
+
 #define get_num(ptr,val) do { \
   typedef int __wrong_buf__[(1-sizeof((ptr)[0])) * (sizeof((ptr)[0])-1)];\
   val = 0; \
similarity index 100%
rename from tools/fastlz.c
rename to src/fastlz.c
index 91eb86d4649ee29199b44fe774cbf1c9f9170122..4ce98bd696f2993b0be07da21094934f33cca031 100644 (file)
@@ -17,7 +17,7 @@ SET(helix2solv_REPOS helix2solv.c repo_helix.h repo_helix.c repo_write.c )
 ADD_EXECUTABLE( helix2solv ${helix2solv_REPOS} )
 TARGET_LINK_LIBRARIES( helix2solv satsolver ${EXPAT_LIBRARY})
 
-SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_write.c attr_store.c)
+SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_write.c)
 ADD_EXECUTABLE( susetags2solv ${susetags2solv_REPOS} )
 TARGET_LINK_LIBRARIES( susetags2solv satsolver)
 
@@ -43,7 +43,7 @@ SET(mergesolv_REPOS mergesolv.c repo_write.c)
 ADD_EXECUTABLE( mergesolv ${mergesolv_REPOS} )
 TARGET_LINK_LIBRARIES( mergesolv satsolver)
 
-SET(dumpattr_REPOS dumpattr.c attr_store.c)
+SET(dumpattr_REPOS dumpattr.c)
 ADD_EXECUTABLE( dumpattr ${dumpattr_REPOS} )
 TARGET_LINK_LIBRARIES( dumpattr satsolver)