~ubuntu-branches/ubuntu/jaunty/pulseaudio/jaunty-updates

« back to all changes in this revision

Viewing changes to src/pulsecore/modargs.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071204005608-3lzrrrpxi186kgx4
Tags: upstream-0.9.8
ImportĀ upstreamĀ versionĀ 0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef foomodargshfoo
2
2
#define foomodargshfoo
3
3
 
4
 
/* $Id: modargs.h 1971 2007-10-28 19:13:50Z lennart $ */
 
4
/* $Id: modargs.h 2050 2007-11-13 17:37:44Z lennart $ */
5
5
 
6
6
/***
7
7
  This file is part of PulseAudio.
28
28
#include <pulse/sample.h>
29
29
#include <pulse/channelmap.h>
30
30
#include <pulsecore/core.h>
 
31
#include <pulsecore/macro.h>
31
32
 
32
33
typedef struct pa_modargs pa_modargs;
33
34
 
44
45
/* Return a module argument as unsigned 32bit value in *value */
45
46
int pa_modargs_get_value_u32(pa_modargs *ma, const char *key, uint32_t *value);
46
47
int pa_modargs_get_value_s32(pa_modargs *ma, const char *key, int32_t *value);
47
 
int pa_modargs_get_value_boolean(pa_modargs *ma, const char *key, int *value);
 
48
int pa_modargs_get_value_boolean(pa_modargs *ma, const char *key, pa_bool_t *value);
48
49
 
49
50
/* Return sample spec data from the three arguments "rate", "format" and "channels" */
50
51
int pa_modargs_get_sample_spec(pa_modargs *ma, pa_sample_spec *ss);