aboutsummaryrefslogtreecommitdiffstats
path: root/c_init.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-21 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-21 20:20:20 +0100
commit08430a42aa1cf9eff49b8015329ef8a112a5d0e5 (patch)
tree0840bc47a042b8c46b04c9caac3bcd85171051a3 /c_init.go
parentfix (diff)
downloadhardflip-08430a42aa1cf9eff49b8015329ef8a112a5d0e5.tar.gz
hardflip-08430a42aa1cf9eff49b8015329ef8a112a5d0e5.tar.bz2
hardflip-08430a42aa1cf9eff49b8015329ef8a112a5d0e5.tar.xz
hardflip-08430a42aa1cf9eff49b8015329ef8a112a5d0e5.tar.zst
hardflip-08430a42aa1cf9eff49b8015329ef8a112a5d0e5.zip
tmp
Diffstat (limited to 'c_init.go')
-rw-r--r--c_init.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/c_init.go b/c_init.go
index 51ce67a..ca26683 100644
--- a/c_init.go
+++ b/c_init.go
@@ -79,8 +79,9 @@ func c_recurse_data_dir(dir string, root string, lhost *HostList) {
}
}
-func c_load_data_dir(dir string) *HostList {
+func c_load_data_dir(dir string) (*HostList, *DirsList) {
lhost := HostList{}
+ ldirs := DirsList{}
c_recurse_data_dir("", dir + "/", &lhost)
- return &lhost
+ return &lhost, &ldirs
}