Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
svn
ddnssync
Commits
73665a19
Commit
73665a19
authored
Sep 30, 2007
by
mr-ti
Browse files
No commit message
No commit message
parent
b9c86bd6
Changes
4
Hide whitespace changes
Inline
Side-by-side
ddnssync/CMakeLists.txt
View file @
73665a19
...
...
@@ -2,7 +2,7 @@
PROJECT
(
ddnssync
)
# ### COMMUN ###
SET
(
ddnssync_SRCS main.cpp ddnssslist.cpp
)
SET
(
ddnssync_SRCS main.cpp ddnssslist.cpp
ddnsspluginlist.cpp
)
SET
(
ddnssync_LIBS ddnssbase unicomdb
)
SET
(
ddnssync_DEFS
${
global_unicomctrl_DEFS
}
)
SET
(
ddnssync_LDFS
)
...
...
ddnssync/ddnsspluginlist.cpp
View file @
73665a19
...
...
@@ -9,17 +9,16 @@
// Copyright: See COPYING file that comes with this distribution
//
//
#include "cunipluginlist.h"
#include "cunipluginpus.h"
#include "cunipluginlib.h"
#include "ddnsspluginlist.h"
#include <dlfcn.h>
/**
* @brief DDnsSPluginList constructor.
*/
DDnsSPluginListList
::
DDnsSPluginListList
(
CUniConf
*
config
)
:
CUniObj
()
{
string
dirPath
=
config
->
getValue
(
"plugin_dir_path"
);
DDnsSPluginListList
::
DDnsSPluginListList
(
CUniConf
&
config
)
:
CUniObj
()
{
string
dirPath
=
config
.
getValue
(
"plugin_dir_path"
);
if
(
!
dirPath
.
empty
()){
CUniStringList
list
=
config
->
getListValue
(
"plugin_list"
);
CUniStringList
list
=
config
.
getListValue
(
"plugin_list"
);
Plugin
*
plugin
;
string
plugPath
;
...
...
@@ -53,7 +52,7 @@ DDnsSPluginListList::DDnsSPluginListList(CUniConf *config):CUniObj() {
* @brief DDnsSPluginList destructor.
*/
DDnsSPluginListList
::~
DDnsSPluginListList
()
{
for
(
iterator
it
=
begin
();
it
!=
end
();
it
++
){
for
(
map
<
string
,
Plugin
*>::
iterator
it
=
plugList
.
begin
();
it
!=
plugList
.
end
();
it
++
){
dlclose
(
it
->
second
->
handle
);
delete
it
->
second
;
printd
(
"~() >> plugin
\"
"
+
it
->
first
+
"
\"
unloaded.
\n
"
);
...
...
ddnssync/ddnsspluginlist.h
View file @
73665a19
...
...
@@ -20,7 +20,8 @@
#ifndef DDNSSPLUGINLIST_H
#define DDNSSPLUGINLIST_H
#include <unicomctrl/cuniobj.h>
#include <unicomctrl/cuniconf.h>
#include <unicomctrl/unilib.h>
#include <map>
/**
...
...
ddnssync/ddnssslist.cpp
View file @
73665a19
...
...
@@ -52,7 +52,7 @@ DDnsSSList::DName::~DName()
int
DDnsSSList
::
DName
::
run
(){
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment