-
Notifications
You must be signed in to change notification settings - Fork 0
/
fs.h
44 lines (37 loc) · 1014 Bytes
/
fs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <iostream>
#include <string>
#include <vector>
#include <thread>
#include <mutex>
#include <map>
#include <iomanip>
#include <regex>
#include <sstream>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <stdio.h>
#include <getopt.h>
#include <libgen.h>
#include <omp.h>
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>
#include "track.hpp"
#include "logger.hpp"
struct DIRENT
{
unsigned int type;
int me;
int up;
std::string name;
std::string fullpath;
};
void DoTheDB(std::string & nspace, std::vector<DIRENT> & t, std::string & dbhost, Logger & _log_);
void Discover(std::string path, const std::vector<std::string> & allowable_extensions, std::vector<DIRENT> & t, int parent, int & c, bool is_root, Logger & _log_);
// There's a buffer declared for reading the output of ffprobe.
// Currently used only in db.cpp.
extern const int BSIZE;