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
af0edf6a
Commit
af0edf6a
authored
16 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
clean up frame mode/specific calls. Add code to handle new ini stanza.
parent
f48f85a4
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/zmapServer/acedb/acedbServer.c
+15
-14
15 additions, 14 deletions
src/zmapServer/acedb/acedbServer.c
with
15 additions
and
14 deletions
src/zmapServer/acedb/acedbServer.c
+
15
−
14
View file @
af0edf6a
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See zmapServer.h
* HISTORY:
* Last edited: Oct
10
13:0
6
2008 (
rds
)
* Last edited: Oct
28
13:0
1
2008 (
edgrif
)
* Created: Wed Aug 6 15:46:38 2003 (edgrif)
* CVS info: $Id: acedbServer.c,v 1.11
2
2008-10-
10
1
2
:1
8:46 rds
Exp $
* CVS info: $Id: acedbServer.c,v 1.11
3
2008-10-
29
1
6
:1
7:03 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -183,8 +183,8 @@ static char *getAcedbColourSpec(char *acedb_colour_name) ;
static
gboolean
parseMethodStyleNames
(
AcedbServer
server
,
char
*
method_str_in
,
char
**
end_pos
,
gpointer
user_data
)
;
static
void
printCB
(
gpointer
data
,
gpointer
user_data
)
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
static
void
printCB
(
gpointer
data
,
gpointer
user_data
)
;
static
void
stylePrintCB
(
gpointer
data
,
gpointer
user_data
)
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
...
...
@@ -276,6 +276,7 @@ static gboolean createConnection(void **server_out,
else
server
->
version_str
=
g_strdup
(
ACEDB_SERVER_MIN_VERSION
)
;
server
->
acedb_styles
=
TRUE
;
/* Read the config file for any relevant information... */
readConfigFile
(
server
)
;
...
...
@@ -2739,7 +2740,7 @@ ZMapFeatureTypeStyle parseMethod(char *method_str_in,
zMapStyleSetStrandShowReverse
(
style
,
show_up_strand
)
;
if
(
frame_mode
)
zMapStyleSetFrame
Specific
(
style
,
frame_mode
)
;
zMapStyleSetFrame
Mode
(
style
,
frame_mode
)
;
zMapStyleInitOverlapMode
(
style
,
default_overlap_mode
,
curr_overlap_mode
)
;
...
...
@@ -3336,7 +3337,7 @@ ZMapFeatureTypeStyle parseStyle(char *style_str_in,
zMapStyleSetStrandShowReverse
(
style
,
show_up_strand
)
;
if
(
frame_mode
)
zMapStyleSetFrame
Specific
(
style
,
frame_mode
)
;
zMapStyleSetFrame
Mode
(
style
,
frame_mode
)
;
if
(
bump_mode_set
||
bump_default_set
)
zMapStyleInitOverlapMode
(
style
,
default_overlap_mode
,
curr_overlap_mode
)
;
...
...
@@ -3635,7 +3636,7 @@ static char *getAcedbColourSpec(char *acedb_colour_name)
}
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
static
void
printCB
(
gpointer
data
,
gpointer
user_data
)
{
GQuark
feature_set
=
GPOINTER_TO_INT
(
data
)
;
...
...
@@ -3645,7 +3646,7 @@ static void printCB(gpointer data, gpointer user_data)
return
;
}
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
static
void
stylePrintCB
(
gpointer
data
,
gpointer
user_data
)
{
ZMapFeatureTypeStyle
style
=
(
ZMapFeatureTypeStyle
)
data
;
...
...
@@ -3667,7 +3668,7 @@ static gpointer configure_struct_create()
{
return
g_new0
(
URL_use_methods_Struct
,
1
);
}
static
void
configure_url
(
gpointer
parent_data
,
GValue
*
value
)
static
void
configure_url
(
char
*
current_stanza_name
,
char
*
key
,
GType
type
,
gpointer
parent_data
,
GValue
*
value
)
{
URL_use_methods
configure
=
(
URL_use_methods
)
parent_data
;
int
error
;
...
...
@@ -3681,7 +3682,7 @@ static void configure_url(gpointer parent_data, GValue *value)
return
;
}
static
void
configure_methods
(
gpointer
parent_data
,
GValue
*
value
)
static
void
configure_methods
(
char
*
current_stanza_name
,
char
*
key
,
GType
type
,
gpointer
parent_data
,
GValue
*
value
)
{
URL_use_methods
configure
=
(
URL_use_methods
)
parent_data
;
...
...
@@ -3728,12 +3729,12 @@ static void readConfigFile(AcedbServer server)
{
URL_use_methods
configure_data
=
(
URL_use_methods
)
list
->
data
;
if
(
!
((
!
configure_data
->
url
)
||
(
strcmp
(
configure_data
->
url
->
host
,
server
->
host
)
!=
0
)
||
(
configure_data
->
url
->
port
!=
server
->
port
)))
server
->
acedb_styles
=
!
configure_data
->
use_methods
;
if
(
!
((
!
configure_data
->
url
)
||
(
strcmp
(
configure_data
->
url
->
host
,
server
->
host
)
!=
0
)
||
(
configure_data
->
url
->
port
!=
server
->
port
)))
server
->
acedb_styles
=
!
(
configure_data
->
use_methods
)
;
list
=
list
->
next
;
list
=
list
->
next
;
}
}
...
...
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