osquery-1/osquery/core/sqlite_util.h
2014-08-11 17:37:49 -07:00

25 lines
592 B
C++

// Copyright 2004-present Facebook. All Rights Reserved.
#ifndef OSQUERY_CORE_SQLITE_UTIL_H
#define OSQUERY_CORE_SQLITE_UTIL_H
#include <string>
#include <vector>
#include <sqlite3.h>
#include "osquery/database.h"
namespace osquery { namespace core {
// the callback for populating a std::vector<row> set of results. "argument"
// should be a non-const reference to a std::vector<row>
int query_data_callback(void *argument, int argc, char *argv[], char *column[]);
// Return a fully configured sqlite3 database object
sqlite3* createDB();
}}
#endif /* OSQUERY_CORE_SQLITE_UTIL_H */