summaryrefslogtreecommitdiffstats
path: root/network/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-13 20:38:37 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-13 20:38:37 +0000
commita4bc8363b53f68c20bed8dcf5bf436c8609be199 (patch)
treef3e960ac9d760b97baf5f9575cfa18f713900fbe /network/manager.c
parent235f0862a242772d8e3e51cd4f4dd8277939bbe5 (diff)
network: moved register_nap_from_file to server_register_from file to support gn and nap registration
Diffstat (limited to 'network/manager.c')
-rw-r--r--network/manager.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/network/manager.c b/network/manager.c
index 15209592..450fd872 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -803,11 +803,11 @@ static void register_stored(void)
/* NAP objects */
create_name(filename, PATH_MAX, STORAGEDIR, de->d_name, "nap");
-
if (stat (filename, &s) == 0 && (s.st_mode & __S_IFREG)) {
snprintf(path, MAX_PATH_LENGTH,
NETWORK_PATH"/server/nap%d", net_uid++);
- register_nap_from_file(connection, path, &src, filename);
+ server_register_from_file(connection, path,
+ &src, BNEP_SVC_NAP, filename);
}
/* GN objects */
@@ -815,7 +815,8 @@ static void register_stored(void)
if (stat (filename, &s) == 0 && (s.st_mode & __S_IFREG)) {
snprintf(path, MAX_PATH_LENGTH,
NETWORK_PATH"/server/gn%d", net_uid++);
- register_gn_from_file(connection, path, &src, filename);
+ server_register_from_file(connection, path,
+ &src, BNEP_SVC_GN, filename);
}
}