osquery-1/osquery/tables/filesystem.h
2014-07-30 17:35:19 -07:00

36 lines
1.0 KiB
C

// Copyright 2004-present Facebook. All Rights Reserved.
#ifndef _TABLES_FILESYSTEM_H_
#define _TABLES_FILESYSTEM_H_
#include "osquery/sqlite3.h"
// Make sure we can call this stuff from C++.
#ifdef __cplusplus
extern "C" {
#endif
// An sqlite3_filesystem is an abstract type to stores an instance of
// an integer array.
typedef struct sqlite3_filesystem sqlite3_filesystem;
// Invoke this routine to create a specific instance of an filesystem object.
// The new filesystem object is returned by the 3rd parameter.
//
// Each filesystem object corresponds to a virtual table in the TEMP table
// with a name of zName.
//
// Destroy the filesystem object by dropping the virtual table. If not done
// explicitly by the application, the virtual table will be dropped implicitly
// by the system when the database connection is closed.
int sqlite3_filesystem_create(
sqlite3 *db,
const char *zName,
sqlite3_filesystem **ppReturn
);
#ifdef __cplusplus
} // End of the 'extern "C"' block
#endif
#endif /* _TABLES_FILESYSTEM_H_ */