Skip to content
Snippets Groups Projects
Commit 3f6a5a4e authored by edgrif's avatar edgrif
Browse files

remove redundant header.

parent f2190a13
No related branches found
No related tags found
No related merge requests found
/* File: zmapConn.h
* Author: Ed Griffiths (edgrif@sanger.ac.uk)
* Copyright (c) Sanger Institute, 2003
*-------------------------------------------------------------------
* ZMap is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see the on-line version at http://www.gnu.org/copyleft/gpl.txt
*-------------------------------------------------------------------
* This file is part of the ZMap genome database package
* and was written by
* Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk,
* Rob Clack (Sanger Institute, UK) rnc@sanger.ac.uk
*
* Description:
* HISTORY:
* Last edited: Dec 14 09:26 2004 (edgrif)
* Created: Thu Jul 24 14:35:58 2003 (edgrif)
* CVS info: $Id: zmapConn.h,v 1.11 2004-12-15 14:09:44 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_CONN_H
#define ZMAP_CONN_H
#include <ZMap/zmapProtocol.h>
/* We should have a function to access this global.... */
/* debugging messages, TRUE for on... */
extern gboolean zmap_thr_debug_G ;
#define ZMAPTHR_CONFIG_DEBUG_STR "threads" /* string to specify on .ZMap for
turning debug on/off. */
/* If you change these two enumerated types you must update zMapVarGetRequestString() or
* zMapVarGetReplyString() accordingly. */
/* Requests to a slave thread. */
typedef enum {ZMAP_REQUEST_INIT, ZMAP_REQUEST_WAIT, ZMAP_REQUEST_TIMED_OUT,
ZMAP_REQUEST_GETDATA} ZMapThreadRequest ;
/* Replies from a slave thread. */
typedef enum {ZMAP_REPLY_INIT, ZMAP_REPLY_WAIT, ZMAP_REPLY_GOTDATA, ZMAP_REPLY_REQERROR,
ZMAP_REPLY_DIED, ZMAP_REPLY_CANCELLED} ZMapThreadReply ;
/* One per connection to a database, an opaque private type. */
typedef struct _ZMapConnectionStruct *ZMapConnection ;
ZMapConnection zMapConnCreate(char *machine, int port, char *protocol, int timeout, char *version,
char *sequence, int start, int end, GData *types,
ZMapProtocolAny initial_request) ;
void zMapConnRequest(ZMapConnection connection, void *request) ;
gboolean zMapConnGetReply(ZMapConnection connection, ZMapThreadReply *state) ;
void zMapConnSetReply(ZMapConnection connection, ZMapThreadReply state) ;
gboolean zMapConnGetReplyWithData(ZMapConnection connection, ZMapThreadReply *state,
void **data, char **err_msg) ;
void *zMapConnGetThreadid(ZMapConnection connection) ;
char *zMapVarGetRequestString(ZMapThreadRequest signalled_state) ;
char *zMapVarGetReplyString(ZMapThreadReply signalled_state) ;
void zMapConnKill(ZMapConnection connection) ;
void zMapConnDestroy(ZMapConnection connection) ;
#endif /* !ZMAP_CONN_H */
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment