"JOIN products AS p ON ch.product = p.id "
"WHERE p.name = ? AND c.vendor_id = ? "
"AND c.name = ? AND c.qualifier = ? AND ch.algo = ? ",
- DB_TEXT, product, DB_INT, comp_name->vendor_id,
- DB_INT, comp_name->name, DB_INT, comp_name->qualifier,
+ DB_TEXT, product, DB_INT, comp_name->get_vendor_id(comp_name),
+ DB_INT, comp_name->get_name(comp_name),
+ DB_INT, comp_name->get_qualifier(comp_name),
DB_INT, algo, DB_BLOB);
return e;
typedef struct pts_database_t pts_database_t;
#include "pts_meas_algo.h"
+#include "components/pts_comp_func_name.h"
#include <library.h>
/**
* @param is_dir TRUE if directory was measured
* @return enumerator over all matching measurement hashes
*/
- enumerator_t* (*create_file_hash_enumerator)(
- pts_database_t *this, char *product,
- pts_meas_algorithms_t algo,
- int id, bool is_dir);
+ enumerator_t* (*create_file_hash_enumerator)(pts_database_t *this,
+ char *product, pts_meas_algorithms_t algo,
+ int id, bool is_dir);
/**
* Get stored measurement hash for functional component entries