Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sms
c-player
Commits
ea776ac2
Commit
ea776ac2
authored
Sep 16, 2015
by
hark
Browse files
get varst from snowmix
parent
456d00df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vartest.c
View file @
ea776ac2
...
...
@@ -61,9 +61,9 @@ print_snowFeed (snowFeed *f)
typedef
struct
snowData
snowData
;
struct
snowData
{
int
currentFeed
feed
;
int
mixer
;
}
snowFeed
*
currentFeed
;
snowMixer
*
mixer
;
}
;
struct
snowData
*
snow
;
...
...
@@ -191,20 +191,30 @@ get_vars (snowMixer *mixer, snowFeed *feed)
return
0
;
}
void
snowData
*
init_snowData
(
snowData
*
s
)
{
struct
snowMixer
*
mixer
;
struct
snowFeed
*
feed
;
s
=
(
snowData
*
)
malloc
(
sizeof
(
struct
snowData
));
mixer
=
(
snowMixer
*
)
malloc
(
sizeof
(
struct
snowMixer
));
/*
mixer->host = "bla"; //host
mixer->control_socket = "bla"; //ctrsocket
mixer->state = "bla"; //snowmix
mixer->ratefraction = "bla"; //ratefraction
*/
feed
=
(
snowFeed
*
)
malloc
(
sizeof
(
struct
snowFeed
));
//feed->control_pipe = "bla"; //feed_control_pipe
get_vars
(
mixer
,
feed
);
// print_snowMixer(snow->mixer);
// print_snowFeed(snow->currentFeed);
s
->
currentFeed
=
feed
;
s
->
mixer
=
mixer
;
return
s
;
}
...
...
@@ -212,7 +222,7 @@ init_snowData (snowData *s)
main
(
int
argc
,
char
*
argv
[])
{
init_snowData
(
snow
);
snow
=
init_snowData
(
snow
);
// exec script that sets env.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment