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
32e83135
Commit
32e83135
authored
16 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
move to [ini] style config files
parent
83ce42ff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapUtils/zmapConfigLoader.c
+31
-2
31 additions, 2 deletions
src/zmapUtils/zmapConfigLoader.c
with
31 additions
and
2 deletions
src/zmapUtils/zmapConfigLoader.c
+
31
−
2
View file @
32e83135
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Oct
1 15:30
2008 (rds)
* Last edited: Oct
2 09:12
2008 (rds)
* Created: Thu Sep 25 14:12:05 2008 (rds)
* CVS info: $Id: zmapConfigLoader.c,v 1.
1
2008-10-0
1 15
:32:
2
3 rds Exp $
* CVS info: $Id: zmapConfigLoader.c,v 1.
2
2008-10-0
2 08
:32:
5
3 rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -43,6 +43,7 @@ static ZMapConfigIniContextKeyEntry get_source_group_data(char **stanza_name, ch
static
ZMapConfigIniContextKeyEntry
get_window_group_data
(
char
**
stanza_name
,
char
**
stanza_type
);
static
ZMapConfigIniContextKeyEntry
get_blixem_group_data
(
char
**
stanza_name
,
char
**
stanza_type
);
static
gpointer
create_config_source
();
static
void
free_source_list_item
(
gpointer
list_data
,
gpointer
unused_data
);
ZMapConfigIniContext
zMapConfigIniContextProvide
()
...
...
@@ -91,6 +92,13 @@ GList *zMapConfigIniContextGetSources(ZMapConfigIniContext context)
return
list
;
}
void
zMapConfigSourcesFreeList
(
GList
*
config_sources_list
)
{
g_list_foreach
(
config_sources_list
,
free_source_list_item
,
NULL
);
g_list_free
(
config_sources_list
);
return
;
}
static
ZMapConfigIniContextKeyEntry
get_app_group_data
(
char
**
stanza_name
,
char
**
stanza_type
)
...
...
@@ -165,6 +173,26 @@ static gpointer create_config_source()
return
g_new0
(
ZMapConfigSourceStruct
,
1
);
}
static
void
free_source_list_item
(
gpointer
list_data
,
gpointer
unused_data
)
{
ZMapConfigSource
source_to_free
=
(
ZMapConfigSource
)
list_data
;
if
(
source_to_free
->
url
)
g_free
(
source_to_free
->
url
);
if
(
source_to_free
->
version
)
g_free
(
source_to_free
->
version
);
if
(
source_to_free
->
featuresets
)
g_free
(
source_to_free
->
featuresets
);
if
(
source_to_free
->
navigatorsets
)
g_free
(
source_to_free
->
navigatorsets
);
if
(
source_to_free
->
stylesfile
)
g_free
(
source_to_free
->
stylesfile
);
if
(
source_to_free
->
format
)
g_free
(
source_to_free
->
format
);
return
;
}
static
void
source_set_url
(
gpointer
parent_data
,
GValue
*
property_value
)
{
ZMapConfigSource
source
=
(
ZMapConfigSource
)
parent_data
;
...
...
@@ -358,3 +386,4 @@ static ZMapConfigIniContextKeyEntry get_blixem_group_data(char **stanza_name, ch
}
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