Fixed the building

This commit is contained in:
Sansar Choinyambuu
2011-11-28 21:20:23 +01:00
committed by Andreas Steffen
parent 0975b00d06
commit f10fc0651e
2 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -125,8 +125,9 @@ METHOD(pts_database_t, create_comp_hash_enumerator, enumerator_t*,
"JOIN products AS p ON ch.product = p.id " "JOIN products AS p ON ch.product = p.id "
"WHERE p.name = ? AND c.vendor_id = ? " "WHERE p.name = ? AND c.vendor_id = ? "
"AND c.name = ? AND c.qualifier = ? AND ch.algo = ? ", "AND c.name = ? AND c.qualifier = ? AND ch.algo = ? ",
DB_TEXT, product, DB_INT, comp_name->vendor_id, DB_TEXT, product, DB_INT, comp_name->get_vendor_id(comp_name),
DB_INT, comp_name->name, DB_INT, comp_name->qualifier, DB_INT, comp_name->get_name(comp_name),
DB_INT, comp_name->get_qualifier(comp_name),
DB_INT, algo, DB_BLOB); DB_INT, algo, DB_BLOB);
return e; return e;
+4 -4
View File
@@ -24,6 +24,7 @@
typedef struct pts_database_t pts_database_t; typedef struct pts_database_t pts_database_t;
#include "pts_meas_algo.h" #include "pts_meas_algo.h"
#include "components/pts_comp_func_name.h"
#include <library.h> #include <library.h>
/** /**
@@ -68,10 +69,9 @@ struct pts_database_t {
* @param is_dir TRUE if directory was measured * @param is_dir TRUE if directory was measured
* @return enumerator over all matching measurement hashes * @return enumerator over all matching measurement hashes
*/ */
enumerator_t* (*create_file_hash_enumerator)( enumerator_t* (*create_file_hash_enumerator)(pts_database_t *this,
pts_database_t *this, char *product, char *product, pts_meas_algorithms_t algo,
pts_meas_algorithms_t algo, int id, bool is_dir);
int id, bool is_dir);
/** /**
* Get stored measurement hash for functional component entries * Get stored measurement hash for functional component entries