mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-09 02:36:46 +00:00
25 lines
592 B
C++
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 */
|