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
a81649e4
Commit
a81649e4
authored
16 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add new delete all connections from step list function.
parent
ebdef464
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/zmapView/zmapViewUtils.c
+43
-3
43 additions, 3 deletions
src/zmapView/zmapViewUtils.c
src/zmapView/zmapView_P.h
+4
-3
4 additions, 3 deletions
src/zmapView/zmapView_P.h
with
47 additions
and
6 deletions
src/zmapView/zmapViewUtils.c
+
43
−
3
View file @
a81649e4
...
...
@@ -27,9 +27,9 @@
* Exported functions: See ZMap/ZMapView.h for public functions and
* zmapView_P.h for private functions.
* HISTORY:
* Last edited:
Dec 5 14:15
200
8
(edgrif)
* Last edited:
Mar 20 11:03
200
9
(edgrif)
* Created: Mon Sep 20 10:29:15 2004 (edgrif)
* CVS info: $Id: zmapViewUtils.c,v 1.1
1
200
8-12-09 14:16:13
edgrif Exp $
* CVS info: $Id: zmapViewUtils.c,v 1.1
2
200
9-03-20 12:41:52
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -72,6 +72,7 @@ static ZMapViewConnectionStep stepListFindStep(ZMapViewConnectionStepList step_l
static
void
stepFind
(
gpointer
data
,
gpointer
user_data
)
;
static
void
reqFind
(
gpointer
data
,
gpointer
user_data
)
;
static
void
requestRemove
(
gpointer
data
,
gpointer
user_data
)
;
static
void
connectionRemove
(
gpointer
data
,
gpointer
user_data
)
;
static
void
stepDestroy
(
gpointer
data
,
gpointer
user_data
)
;
static
void
requestDestroy
(
gpointer
data
,
gpointer
user_data
)
;
static
void
isConnection
(
gpointer
data
,
gpointer
user_data
)
;
...
...
@@ -365,6 +366,24 @@ void zmapViewStepListStepRequestDeleteAll(ZMapViewConnectionStepList step_list,
}
/* A Connection failed so remove it from the step list. */
void
zmapViewStepListStepConnectionDeleteAll
(
ZMapViewConnectionStepList
step_list
,
ZMapViewConnection
connection
)
{
StepListDeleteStruct
delete_data
=
{
NULL
}
;
delete_data
.
step_list
=
step_list
;
delete_data
.
connection
=
connection
;
g_list_foreach
(
step_list
->
steps
,
connectionRemove
,
&
delete_data
)
;
return
;
}
/* Test to see if there are any requests in the steps, use this after
* doing a 'delete all' to check that there is still something to run. */
gboolean
zmapViewStepListAreConnections
(
ZMapViewConnectionStepList
step_list
)
...
...
@@ -763,6 +782,27 @@ static void requestRemove(gpointer data, gpointer user_data)
static
void
connectionRemove
(
gpointer
data
,
gpointer
user_data
)
{
ZMapViewConnectionStep
step
=
(
ZMapViewConnectionStep
)
data
;
StepListDelete
delete_data
=
(
StepListDelete
)
user_data
;
StepListFindStruct
step_find
=
{
0
}
;
step_find
.
connection
=
delete_data
->
connection
;
stepFind
(
data
,
&
step_find
)
;
if
(
step_find
.
request
)
{
step
->
connections
=
g_list_remove
(
step
->
connections
,
step_find
.
request
)
;
requestDestroy
(
step_find
.
request
,
delete_data
->
step_list
)
;
}
return
;
}
/* All requests are in STEPLIST_PENDING state and after dispatching will go into STEPLIST_DISPATCHED. */
static
void
stepDispatch
(
gpointer
data
,
gpointer
user_data
)
{
...
...
@@ -823,7 +863,7 @@ static void stepFind(gpointer data, gpointer user_data)
ZMapViewConnectionStep
step
=
(
ZMapViewConnectionStep
)
data
;
StepListFind
step_find
=
(
StepListFind
)
user_data
;
if
(
step
->
request
==
step_find
->
request_type
)
if
(
!
(
step_find
->
request_type
)
||
step
->
request
==
step_find
->
request_type
)
{
/* If there is a connection then go on and find it otherwise just return the step. */
if
(
step_find
->
connection
)
...
...
This diff is collapsed.
Click to expand it.
src/zmapView/zmapView_P.h
+
4
−
3
View file @
a81649e4
...
...
@@ -20,13 +20,13 @@
* This file is part of the ZMap genome database package
* originated by
* Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk,
* Ro
b Clack
(Sanger Institute, UK) r
nc
@sanger.ac.uk
* Ro
y Storey
(Sanger Institute, UK) r
ds
@sanger.ac.uk
*
* Description:
* HISTORY:
* Last edited:
Feb 12 19:36
2009 (
rds
)
* Last edited:
Mar 20 10:59
2009 (
edgrif
)
* Created: Thu May 13 15:06:21 2004 (edgrif)
* CVS info: $Id: zmapView_P.h,v 1.4
5
2009-0
2-13 10:24:20 rds
Exp $
* CVS info: $Id: zmapView_P.h,v 1.4
6
2009-0
3-20 12:41:52 edgrif
Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_VIEW_P_H
...
...
@@ -319,6 +319,7 @@ void zmapViewStepListStepProcessRequest(ZMapViewConnectionStepList step_list, ZM
ZMapViewConnectionRequest
zmapViewStepListFindRequest
(
ZMapViewConnectionStepList
step_list
,
ZMapServerReqType
request_type
,
ZMapViewConnection
connection
)
;
void
zmapViewStepListStepRequestDeleteAll
(
ZMapViewConnectionStepList
step_list
,
ZMapViewConnectionRequest
request
)
;
void
zmapViewStepListStepConnectionDeleteAll
(
ZMapViewConnectionStepList
step_list
,
ZMapViewConnection
connection
)
;
gboolean
zmapViewStepListAreConnections
(
ZMapViewConnectionStepList
step_list
)
;
gboolean
zmapViewStepListIsNext
(
ZMapViewConnectionStepList
step_list
)
;
void
zmapViewStepDestroy
(
gpointer
data
,
gpointer
user_data
)
;
...
...
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