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
83a7c6de
Commit
83a7c6de
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add on_fail to all steps, remove request removal code, no good.
parent
4dc809ce
No related branches found
Branches containing commit
Tags
RELEASE_0-1-77
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapView/zmapViewUtils.c
+8
-42
8 additions, 42 deletions
src/zmapView/zmapViewUtils.c
with
8 additions
and
42 deletions
src/zmapView/zmapViewUtils.c
+
8
−
42
View file @
83a7c6de
...
...
@@ -27,9 +27,9 @@
* Exported functions: See ZMap/ZMapView.h for public functions and
* zmapView_P.h for private functions.
* HISTORY:
* Last edited:
Mar 2
0 1
1
:0
3
2009 (edgrif)
* Last edited:
Jun 1
0 1
6
:0
6
2009 (edgrif)
* Created: Mon Sep 20 10:29:15 2004 (edgrif)
* CVS info: $Id: zmapViewUtils.c,v 1.1
2
2009-0
3-20 12:41:52
edgrif Exp $
* CVS info: $Id: zmapViewUtils.c,v 1.1
3
2009-0
6-10 15:07:41
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -71,7 +71,6 @@ static void stepFinished(gpointer data, gpointer user_data) ;
static
ZMapViewConnectionStep
stepListFindStep
(
ZMapViewConnectionStepList
step_list
,
ZMapServerReqType
request_type
)
;
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
)
;
...
...
@@ -204,7 +203,8 @@ ZMapViewConnectionStepList zmapViewStepListCreate(StepListDispatchCB dispatch_fu
/* Add a step to the step list, if it's the first step to be added then the current step will be
* set to this first step. */
void
zmapViewStepListAddStep
(
ZMapViewConnectionStepList
step_list
,
ZMapServerReqType
request_type
)
void
zmapViewStepListAddStep
(
ZMapViewConnectionStepList
step_list
,
ZMapServerReqType
request_type
,
StepListActionOnFailureType
on_fail
)
{
ZMapViewConnectionStep
step
;
gboolean
first
=
FALSE
;
...
...
@@ -214,6 +214,7 @@ void zmapViewStepListAddStep(ZMapViewConnectionStepList step_list, ZMapServerReq
step
=
g_new0
(
ZMapViewConnectionStepStruct
,
1
)
;
step
->
state
=
STEPLIST_PENDING
;
step
->
on_fail
=
on_fail
;
step
->
request
=
request_type
;
step_list
->
steps
=
g_list_append
(
step_list
->
steps
,
step
)
;
...
...
@@ -237,6 +238,7 @@ ZMapViewConnectionRequest zmapViewStepListAddServerReq(ZMapViewConnectionStepLis
{
request
=
g_new0
(
ZMapViewConnectionRequestStruct
,
1
)
;
request
->
state
=
STEPLIST_PENDING
;
request
->
step
=
step
;
request
->
connection
=
view_con
;
request
->
request_data
=
request_data
;
...
...
@@ -345,26 +347,13 @@ void zmapViewStepListStepProcessRequest(ZMapViewConnectionStepList step_list, ZM
}
else
{
zmapViewStepListStep
Request
DeleteAll
(
step_list
,
request
)
;
zmapViewStepListStep
Connection
DeleteAll
(
step_list
,
request
->
connection
)
;
}
return
;
}
/* A Request failed so remove it from any further steps. */
void
zmapViewStepListStepRequestDeleteAll
(
ZMapViewConnectionStepList
step_list
,
ZMapViewConnectionRequest
request
)
{
StepListDeleteStruct
delete_data
=
{
NULL
}
;
delete_data
.
step_list
=
step_list
;
delete_data
.
connection
=
request
->
connection
;
g_list_foreach
(
step_list
->
steps
,
requestRemove
,
&
delete_data
)
;
return
;
}
/* A Connection failed so remove it from the step list. */
void
zmapViewStepListStepConnectionDeleteAll
(
ZMapViewConnectionStepList
step_list
,
ZMapViewConnection
connection
)
...
...
@@ -753,35 +742,12 @@ static void removeFailed(gpointer data, gpointer user_data)
ZMapViewConnectionRequest
request
=
(
ZMapViewConnectionRequest
)
data
;
ZMapViewConnectionStepList
step_list
=
(
ZMapViewConnectionStepList
)
user_data
;
zmapViewStepListStepRequestDeleteAll
(
step_list
,
request
)
;
return
;
}
static
void
requestRemove
(
gpointer
data
,
gpointer
user_data
)
{
ZMapViewConnectionStep
step
=
(
ZMapViewConnectionStep
)
data
;
StepListDelete
delete_data
=
(
StepListDelete
)
user_data
;
StepListFindStruct
step_find
=
{
0
}
;
step_find
.
request_type
=
step
->
request
;
step_find
.
connection
=
delete_data
->
connection
;
step_find
.
request
=
NULL
;
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
)
;
}
zmapViewStepListStepConnectionDeleteAll
(
step_list
,
request
->
connection
)
;
return
;
}
static
void
connectionRemove
(
gpointer
data
,
gpointer
user_data
)
{
ZMapViewConnectionStep
step
=
(
ZMapViewConnectionStep
)
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