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
ebcb6bc3
Commit
ebcb6bc3
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
remove generalised request stuff, now in protocolHandler code.
parent
02eeba85
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/include/ZMap/zmapServer.h
+7
-35
7 additions, 35 deletions
src/include/ZMap/zmapServer.h
with
7 additions
and
35 deletions
src/include/ZMap/zmapServer.h
+
7
−
35
View file @
ebcb6bc3
...
...
@@ -20,16 +20,15 @@
* This file is part of the ZMap genome database package
* and was written by
* Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk,
* Simon Kelley (Sanger Institute, UK) srk@sanger.ac.uk and
* Rob Clack (Sanger Institute, UK) rnc@sanger.ac.uk
*
* Description: Generalised server interface, hides acedb/das/file
* details from caller.
*
* HISTORY:
* Last edited:
Nov
9
1
5:24
200
4
(edgrif)
* Last edited:
Feb
2
1
4:12
200
5
(edgrif)
* Created: Wed Aug 6 15:48:47 2003 (edgrif)
* CVS info: $Id: zmapServer.h,v 1.1
0
200
4-11-12 11:50:1
6 edgrif Exp $
* CVS info: $Id: zmapServer.h,v 1.1
1
200
5-02-02 14:34:5
6 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_SERVER_H
...
...
@@ -37,59 +36,32 @@
#include
<glib.h>
#include
<ZMap/zmapFeature.h>
#include
<ZMap/zmapProtocol.h>
/* The server interface has basic calls to create/open close/destroy a connection but all other
* requests are via a generalised request call which accepts args in the protocol defined in
* ZMap/zmapProtocol.h. This means that the client can just include ZMap/zmapProtocol.h and pass
* args in that format. */
/* Opaque type, represents a connection to a database server. */
typedef
struct
_ZMapServerStruct
*
ZMapServer
;
/* Possible responses to a server request. */
typedef
enum
{
ZMAP_SERVERRESPONSE_OK
,
ZMAP_SERVERRESPONSE_BADREQ
,
ZMAP_SERVERRESPONSE_REQFAIL
,
ZMAP_SERVERRESPONSE_TIMEDOUT
,
ZMAP_SERVERRESPONSE_SERVERDIED
}
ZMapServerResponseType
;
/* Server context, includes the sequence to be fetched, start/end coords and other stuff needed
* to fetch server data. */
typedef
struct
{
char
*
sequence
;
int
start
;
int
end
;
GData
*
types
;
}
ZMapServerSetContextStruct
,
*
ZMapServerSetContext
;
/* This routine must be called before any other server routines and must only be called once.
* It is the callers responsibility to make sure this happens.
* Provide matching Termination routine ???? */
gboolean
zMapServerGlobalInit
(
char
*
protocol
,
void
**
server_global_data_out
)
;
gboolean
zMapServerCreateConnection
(
ZMapServer
*
server_out
,
void
*
server_global_data
,
char
*
host
,
int
port
,
char
*
protocol
,
int
timeout
,
char
*
version_str
,
char
*
userid
,
char
*
passwd
)
;
ZMapServerResponseType
zMapServerOpenConnection
(
ZMapServer
server
)
;
ZMapServerResponseType
zMapServerSetContext
(
ZMapServer
server
,
ZMapServerSetContext
context
)
;
ZMapServerResponseType
zMapServer
Requ
es
t
(
ZMapServer
server
,
ZMap
ProtocolAny
reques
t
)
;
ZMapServerResponseType
zMapServerSetContext
(
ZMapServer
server
,
char
*
sequence
,
int
start
,
int
end
,
GData
*
types
)
;
ZMapFeatureContext
zMapServerCopyContext
(
ZMapServer
server
)
;
ZMapServerResponseType
zMapServer
GetFeatur
es
(
ZMapServer
server
,
ZMap
FeatureContext
feature_contex
t
)
;
ZMapServerResponseType
zMapServerGetSequence
(
ZMapServer
server
,
ZMapFeatureContext
feature_context
)
;
char
*
zMapServerLastErrorMsg
(
ZMapServer
server
)
;
ZMapServerResponseType
zMapServerCloseConnection
(
ZMapServer
server
)
;
gboolean
zMapServerFreeConnection
(
ZMapServer
server
)
;
...
...
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