FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
libfodbreposysconf.h
1 /* **************************************************************
2  Copyright (C) 2011 Hewlett-Packard Development Company, L.P.
3  Copyright (C) 2015 Siemens AG
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License
7  version 2 as published by the Free Software Foundation.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 ************************************************************** */
18 #ifndef LIBFOCUNIT_H
19 #define LIBFOCUNIT_H
20 #endif
21 
22 #include <libfossdbmanager.h>
23 
24 #define ARRAY_LENGTH 256
25 
26 int create_db_repo_sysconf(int type, char* agent_name, char* sysconfdir);
27 
28 void drop_db_repo_sysconf(char *DBName);
29 
30 char *createTestConfDir(char* cwd, char* agentName);
31 
32 fo_dbManager* createTestEnvironment(const char* srcDirs, const char* doConnectAsAgent, int initDbTables);
33 
34 void dropTestEnvironment(fo_dbManager* dbManager, const char* srcDir, const char* doConnectAsAgent);
35 
36 char *get_sysconfdir();
37 
38 char *get_test_name();
39 
40 char *get_dbconf();
41 
42 char* get_confFile();
43 
44 char *get_db_name();
45 
46 char *get_repodir();
int create_db_repo_sysconf(int type, char *agent_name, char *sysconfdir)
char * get_test_name()
get the test name just created by create_db_repo_sysconf()
char * createTestConfDir(char *cwd, char *agentName)
create a dummy sysConfDir for a given agent
char * get_dbconf()
get Db.conf path just created by create_db_repo_sysconf()
void drop_db_repo_sysconf(char *DBName)
drop db, sysconfig dir and repo
fo_dbManager * dbManager
fo_dbManager object
Definition: process.c:28
char * get_db_name()
get the DB name just created by create_db_repo_sysconf()
char * get_sysconfdir()
get sysconfig dir path just created by create_db_repo_sysconf()
char * get_repodir()
get repo path just created by create_db_repo_sysconf()