Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
f204ec22
Commit
f204ec22
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Created a semaphore file API functions: semfile_list_add and semfile_list_free.
parent
3258a44c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/sbbs.h
+2
-0
2 additions, 0 deletions
src/sbbs3/sbbs.h
src/sbbs3/semfile.c
+11
-1
11 additions, 1 deletion
src/sbbs3/semfile.c
with
13 additions
and
1 deletion
src/sbbs3/sbbs.h
+
2
−
0
View file @
f204ec22
...
...
@@ -884,6 +884,8 @@ extern "C" {
DLLEXPORT
char
*
DLLCALL
semfile_list_check
(
time_t
*
t
,
link_list_t
*
filelist
);
DLLEXPORT
void
DLLCALL
semfile_list_init
(
link_list_t
*
filelist
,
const
char
*
parent
,
const
char
*
action
,
const
char
*
hostname
,
const
char
*
service
);
DLLEXPORT
void
DLLCALL
semfile_list_add
(
link_list_t
*
filelist
,
const
char
*
fname
);
DLLEXPORT
void
DLLCALL
semfile_list_free
(
link_list_t
*
filelist
);
#ifdef JAVASCRIPT
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/semfile.c
+
11
−
1
View file @
f204ec22
...
...
@@ -85,4 +85,14 @@ void DLLCALL semfile_list_init(link_list_t* filelist, const char* parent,
listPushNodeString
(
filelist
,
path
);
SAFEPRINTF4
(
path
,
"%s%s.%s.%s"
,
parent
,
action
,
hostname
,
service
);
listPushNodeString
(
filelist
,
path
);
}
\ No newline at end of file
}
void
DLLCALL
semfile_list_add
(
link_list_t
*
filelist
,
const
char
*
path
)
{
listPushNodeString
(
filelist
,
path
);
}
void
DLLCALL
semfile_list_free
(
link_list_t
*
filelist
)
{
listFree
(
filelist
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment