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
6fd939ca
Commit
6fd939ca
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add code for --xremote-debug flag to turn debug messages on/off.
parent
bf8204c8
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/zmapApp/zmapApp_P.h
+8
-5
8 additions, 5 deletions
src/zmapApp/zmapApp_P.h
src/zmapApp/zmapAppwindow.c
+22
-14
22 additions, 14 deletions
src/zmapApp/zmapAppwindow.c
with
30 additions
and
19 deletions
src/zmapApp/zmapApp_P.h
+
8
−
5
View file @
6fd939ca
...
...
@@ -25,9 +25,9 @@
* Description: Private header for application level of zmap.
*
* HISTORY:
* Last edited:
Dec 19 09:1
2 200
8
(edgrif)
* Last edited:
Mar 2 14:2
2 20
1
0 (edgrif)
* Created: Thu Jul 24 14:35:41 2003 (edgrif)
* CVS info: $Id: zmapApp_P.h,v 1.2
7
20
09-12
-03 1
5
:0
3:08 mh17
Exp $
* CVS info: $Id: zmapApp_P.h,v 1.2
8
20
10-03
-03 1
1
:0
2:18 edgrif
Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_APP_PRIV_H
...
...
@@ -102,9 +102,12 @@ typedef struct _ZMapAppContextStruct
char
*
locale
;
gboolean
sent_finalised
;
char
*
script_dir
;
/* where scripts are kept for the pipeServer module
* can be set in [ZMap] or defaults to run-time directory
*/
char
*
script_dir
;
/* where scripts are kept for the pipeServer module
* can be set in [ZMap] or defaults to run-time directory
*/
gboolean
xremote_debug
;
/* Turn on/off debugging for xremote connections. */
}
ZMapAppContextStruct
,
*
ZMapAppContext
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapApp/zmapAppwindow.c
+
22
−
14
View file @
6fd939ca
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: None
* HISTORY:
* Last edited:
Feb
4
1
6:20
2010 (edgrif)
* Last edited:
Mar
2
1
4:31
2010 (edgrif)
* Created: Thu Jul 24 14:36:27 2003 (edgrif)
* CVS info: $Id: zmapAppwindow.c,v 1.6
7
2010-0
2
-0
4
1
6:57:32
edgrif Exp $
* CVS info: $Id: zmapAppwindow.c,v 1.6
8
2010-0
3
-0
3
1
1:02:18
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -694,42 +694,50 @@ static gboolean getConfiguration(ZMapAppContext app_context)
gboolean
result
=
FALSE
;
ZMapConfigIniContext
context
;
if
((
context
=
zMapConfigIniContextProvide
()))
if
((
context
=
zMapConfigIniContextProvide
()))
{
gboolean
tmp_bool
=
FALSE
;
char
*
tmp_string
=
NULL
;
int
tmp_int
=
0
;
/* Do we show the main window? */
if
(
zMapConfigIniContextGetBoolean
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_MAINWINDOW
,
&
tmp_bool
))
if
(
zMapConfigIniContextGetBoolean
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_MAINWINDOW
,
&
tmp_bool
))
app_context
->
show_mainwindow
=
tmp_bool
;
else
app_context
->
show_mainwindow
=
TRUE
;
/* How long to wait when closing, before timeout */
if
(
zMapConfigIniContextGetInt
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_EXIT_TIMEOUT
,
&
tmp_int
))
if
(
zMapConfigIniContextGetInt
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_EXIT_TIMEOUT
,
&
tmp_int
))
app_context
->
exit_timeout
=
tmp_int
;
if
(
app_context
->
exit_timeout
<
0
)
if
(
app_context
->
exit_timeout
<
0
)
app_context
->
exit_timeout
=
ZMAP_DEFAULT_EXIT_TIMEOUT
;
/* default sequence to display */
if
(
zMapConfigIniContextGetString
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_SEQUENCE
,
&
tmp_string
))
if
(
zMapConfigIniContextGetString
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_SEQUENCE
,
&
tmp_string
))
app_context
->
default_sequence
=
tmp_string
;
/* help url to use */
if
(
zMapConfigIniContextGetString
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_HELP_URL
,
&
tmp_string
))
if
(
zMapConfigIniContextGetString
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_HELP_URL
,
&
tmp_string
))
zMapGUISetHelpURL
(
tmp_string
);
/* locale to use */
if
(
zMapConfigIniContextGetString
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_LOCALE
,
&
tmp_string
))
if
(
zMapConfigIniContextGetString
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_LOCALE
,
&
tmp_string
))
app_context
->
locale
=
tmp_string
;
/* Turn on/off debugging for xremote connection to peer client. */
if
(
zMapConfigIniContextGetBoolean
(
context
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_CONFIG
,
ZMAPSTANZA_APP_XREMOTE_DEBUG
,
&
tmp_bool
))
{
app_context
->
xremote_debug
=
tmp_bool
;
zMapXRemoteSetDebug
(
app_context
->
xremote_debug
)
;
}
zMapConfigIniContextDestroy
(
context
);
result
=
TRUE
;
...
...
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