summaryrefslogtreecommitdiff
path: root/cleopatre/application/libspid/inc/path.h
blob: 4d6691061265299a8dbeaf8b0821aa56807c76a7 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* SPC300 bundle {{{
 *
 * Copyright (C) 2009 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    application/libspid/inc/path.h
 * \brief   path defines of configuration files
 * \ingroup libspid
 *
 * This file defines all pathes of configuraiton files.
 * Modify it to add / change a file path.
 *
 */
#ifndef LIBSPID_PATH_H
#define LIBSPID_PATH_H

#ifndef __UTESTS__

    #define LIBSPID_SAVE_LIST_PATH      "/etc/save.lst"
    #define LIBSPID_SAVE_DIR_PATH       "/usr/local/etc"
    #define LIBSPID_CONF_ROOT_PATH      "/etc"
    #define LIBSPID_HPAV_CONF_PATH      "/etc/hpav.conf"
    #define LIBSPID_HPAV_INFO_PATH      "/etc/hpav.info"
    #define LIBSPID_PHY_CONF_PATH       "/etc/phy.conf"
    #define LIBSPID_INTERNAL_CONF_PATH  "/etc/internal.conf"
    #define LIBSPID_MULTICAST_INFO_PATH "/var/run/info/mcast.info"
    #define LIBSPID_SIGNAL_INFO_PATH  "/etc/signal.info"
    #define LIBSPID_NETWORK_CONF_PATH   "/etc/network/interfaces"
    #define LIBSPID_SYSTEM_VERSION_PATH "/proc/version"
    #define LIBSPID_SYSTEM_UPTIME_PATH  "/proc/uptime"
    #define LIBSPID_SYSTEM_MEMINFO_PATH "/proc/meminfo"
    #define LIBSPID_SYSTEM_MTD_PATH     "/proc/mtd"
    #define LIBSPID_FACTORY_PATH        "/factory"
    #define LIBSPID_DEV_PATH            "/dev"
    #define LIBSPID_CUR_IMG_PROC_PATH   "/proc/spidimg/current_img_slot"
    #define LIBSPID_WEB_RESET_INFO_PATH "/etc/web_reset.info"
    #define LIBSPID_SYSTEM_CONF_PATH    "/etc/system.conf"
    #define LIBSPID_WIRELESS_CONF_PATH  "/etc/Wireless/RT2870AP/RT2870AP.dat"

#else   /* unitary tests paths */

    #define UTESTS_TMP_DIR              "/tmp/utests"
    #define LIBSPID_SAVE_LIST_PATH      "/tmp/utests/etc/save.lst"
    #define LIBSPID_SAVE_DIR_PATH       "/tmp/utests/local"
    #define LIBSPID_CONF_ROOT_PATH      "/tmp/utests/etc"
    #define LIBSPID_HPAV_CONF_PATH      "/tmp/utests/etc/hpav.conf"
    #define LIBSPID_HPAV_INFO_PATH      "/tmp/utests/etc/hpav.info"
    #define LIBSPID_PHY_CONF_PATH       "/tmp/utests/etc/phy.conf"
    #define LIBSPID_INTERNAL_CONF_PATH  "/tmp/utests/etc/internal.conf"
    #define LIBSPID_MULTICAST_INFO_PATH "/tmp/utests/var/run/info/mcast.info"
    #define LIBSPID_SIGNAL_INFO_PATH  "/tmp/utests/etc/signal.info"
    #define LIBSPID_NETWORK_CONF_PATH   "/tmp/utests/network/interfaces"
    #define LIBSPID_SYSTEM_VERSION_PATH "/tmp/utests/proc/version"
    #define LIBSPID_SYSTEM_UPTIME_PATH  "/tmp/utests/proc/uptime"
    #define LIBSPID_SYSTEM_MEMINFO_PATH "/tmp/utests/proc/meminfo"
    #define LIBSPID_SYSTEM_MTD_PATH     "/tmp/utests/proc/mtd"
    #define LIBSPID_FACTORY_PATH        "/tmp/utests/factory"
    #define LIBSPID_DEV_PATH            "/tmp/utests/dev"
    #define LIBSPID_CUR_IMG_PROC_PATH   "/tmp/utests/proc/spidimg/current_img_slot"

#endif

#endif /* LIBSPID_PATH_H */