index 6cc68d3f44c102952a18e102aa30bf6dca697125..4397e8760ed5c6d402cec0a5e1b796c52228041e 100644 (file)
static int
sc_puppet_stcfg_get_data(sc_dbi_client_t __attribute__((unused)) *client,
static int
sc_puppet_stcfg_get_data(sc_dbi_client_t __attribute__((unused)) *client,
- size_t n, sc_data_t *data)
+ size_t n, sc_data_t *data,
+ sc_object_t __attribute__((unused)) *user_data)
{
sc_host_t host = SC_HOST_INIT;
{
sc_host_t host = SC_HOST_INIT;
client = SC_OBJ_WRAPPER(user_data)->data;
if (sc_dbi_exec_query(client, "SELECT name, updated_at FROM hosts;",
client = SC_OBJ_WRAPPER(user_data)->data;
if (sc_dbi_exec_query(client, "SELECT name, updated_at FROM hosts;",
- sc_puppet_stcfg_get_data, /* #columns = */ 2,
+ sc_puppet_stcfg_get_data, NULL, /* #columns = */ 2,
/* col types = */ SC_TYPE_STRING, SC_TYPE_DATETIME)) {
fprintf(stderr, "puppet storeconfigs backend: Failed to retrieve "
"hosts from the storeconfigs DB.\n");
/* col types = */ SC_TYPE_STRING, SC_TYPE_DATETIME)) {
fprintf(stderr, "puppet storeconfigs backend: Failed to retrieve "
"hosts from the storeconfigs DB.\n");