Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
b5bb65ef
Commit
b5bb65ef
authored
21 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
Add a global init func, in this case a no-op
parent
3ff8ac19
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapServer/acedb/acedbServer.c
+17
-7
17 additions, 7 deletions
src/zmapServer/acedb/acedbServer.c
with
17 additions
and
7 deletions
src/zmapServer/acedb/acedbServer.c
+
17
−
7
View file @
b5bb65ef
...
...
@@ -26,18 +26,18 @@
* Description:
* Exported functions: See zmapServer.h
* HISTORY:
* Last edited: Mar
18 09:54
2004 (edgrif)
* Last edited: Mar
22 11:26
2004 (edgrif)
* Created: Wed Aug 6 15:46:38 2003 (edgrif)
* CVS info: $Id: acedbServer.c,v 1.
1
2004-03-
18 10:40:57
edgrif Exp $
* CVS info: $Id: acedbServer.c,v 1.
2
2004-03-
22 13:32:05
edgrif Exp $
*-------------------------------------------------------------------
*/
#include
<AceConn.h>
#include
<zmapServer
_
P.h>
#include
<
ZMap/
zmapServerP
rototype
.h>
#include
<acedbServer_P.h>
static
gboolean
globalInit
(
void
)
;
static
gboolean
createConnection
(
void
**
server_out
,
char
*
host
,
int
port
,
char
*
userid
,
char
*
passwd
,
int
timeout
)
;
...
...
@@ -48,13 +48,12 @@ static gboolean closeConnection(void *server) ;
static
gboolean
destroyConnection
(
void
*
server
)
;
/* Compulsory routine, without this we can't do anything....returns a list of functions
* that can be used to contact an acedb server. The functions are only visible through
* this struct. */
void
acedbGetServerFuncs
(
ZMapServerFuncs
acedb_funcs
)
{
acedb_funcs
->
global_init
=
globalInit
;
acedb_funcs
->
create
=
createConnection
;
acedb_funcs
->
open
=
openConnection
;
acedb_funcs
->
request
=
request
;
...
...
@@ -67,12 +66,23 @@ void acedbGetServerFuncs(ZMapServerFuncs acedb_funcs)
/*
* --------------------- Internal routines. ---------------------
*/
/* For stuff that just needs to be done once at the beginning..... */
static
gboolean
globalInit
(
void
)
{
gboolean
result
=
TRUE
;
return
result
;
}
static
gboolean
createConnection
(
void
**
server_out
,
char
*
host
,
int
port
,
char
*
userid
,
char
*
passwd
,
int
timeout
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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