Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
669852d3
Commit
669852d3
authored
Apr 21, 2007
by
Browse files
only_once fix (threads)
git-svn-id:
file:///home/svn/mapi/trunk@1209
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
27145c28
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/common/mapiipc.c
View file @
669852d3
...
...
@@ -201,10 +201,20 @@ int mapiipc_read(struct mapiipcbuf *qbuf)
return
0
;
}
// Sets globals
void
mapiipc_set_socket_names
(
char
*
socket
,
char
*
socketglobal
)
{
mapidsocket
=
strdup
(
socket
);
mapidsocketglobal
=
strdup
(
socketglobal
);
// Sets globals (once)
int
mapiipc_set_socket_names
(
char
*
socket
,
char
*
socketglobal
)
{
if
(
mapidsocket
==
NULL
&&
mapidsocketglobal
==
NULL
)
{
mapidsocket
=
strdup
(
socket
);
mapidsocketglobal
=
strdup
(
socketglobal
);
return
0
;
}
else
{
return
1
;
}
return
-
1
;
}
int
mapiipc_client_init
()
...
...
src/common/mapiipc.h
View file @
669852d3
...
...
@@ -126,7 +126,7 @@ struct mapiipcbuf {
//IPC calls
//Initialize IPC variables
void
mapiipc_set_socket_names
(
char
*
socket
,
char
*
socketglobal
);
int
mapiipc_set_socket_names
(
char
*
socket
,
char
*
socketglobal
);
//Initialize IPC functions
int
mapiipc_client_init
(
void
);
...
...
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