Statistics
| Branch: | Revision:

napa-baselibs / monl / mon_config.cpp @ d1e0f2ca

History | View | Annotate | Download (1.39 KB)

1 956892f0 ArpadBakay
/***************************************************************************
2
 *   Copyright (C) 2009 by Robert Birke
3
 *   robert.birke@polito.it
4
 *
5
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Lesser General Public
7
 * License as published by the Free Software Foundation; either
8
 * version 2.1 of the License, or (at your option) any later version.
9

10
 * This library is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 * Lesser General Public License for more details.
14

15
 * You should have received a copy of the GNU Lesser General Public
16
 * License along with this library; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA 
18
 ***********************************************************************/
19
20
#include <mon.h>
21
#include "measure_manager.h"
22
#include        <confuse.h>
23
#include <string.h>
24
25
26
cfg_opt_t cfg_ml[] = {
27
        CFG_STR("channel", NULL, CFGF_NONE),
28
        CFG_END()
29
};
30
31
void MeasureManager::monParseConfig(void *monl_config) {
32
#if 0
33
        cfg_t *monl_c = monl_config;
34
        if(!monl_c)
35
                return;
36

37
        /* defualt channel */
38
        char *channel = cfg_getstr(monl_c, "channel");
39
        default_channel = new char[strlen(channel)+1];
40
        memcpy(default_channel, channel, strlen(channel)+1);
41
#endif
42
}