~ubuntu-branches/ubuntu/oneiric/pulseaudio/oneiric

« back to all changes in this revision

Viewing changes to src/pulsecore/modinfo.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071204005608-y1xqvcu45g1yxtlu
Tags: 0.9.8-1ubuntu1
"Hail our new PulseAudio overlords (part two)."

* Merge from Debian unstable.
* Ubuntu-specific changes:
  - debian/control:
    + Don't build-depend on libjack0.100.0-dev or build jack module
      packages,
    + Update pulseaudio's Recommends and Suggests to accomodate
      existing promoted main packages,
    + Explicitly mention pasuspender in pulseaudio-utils's long
      description,
    + Add Vcs-Bzr URI,
    + Adhere to DebianMaintainerField;
  - debian/rules: Use multiuser for update-rc.d;
  - debian/patches/series: Retain the exclusion of
    0001-Set-ESD-socket-to-tmp-.esd-socket-to-match-up-with.patch.
* Dropped Ubuntu-specific change (absorbed into Debian source):
  debian/patches/0002-Double-esound-maximum-sample-size.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: modinfo.c 1971 2007-10-28 19:13:50Z lennart $ */
 
1
/* $Id: modinfo.c 2043 2007-11-09 18:25:40Z lennart $ */
2
2
 
3
3
/***
4
4
  This file is part of PulseAudio.
40
40
#define PA_SYMBOL_DESCRIPTION "pa__get_description"
41
41
#define PA_SYMBOL_USAGE "pa__get_usage"
42
42
#define PA_SYMBOL_VERSION "pa__get_version"
 
43
#define PA_SYMBOL_LOAD_ONCE "pa__load_once"
43
44
 
44
45
pa_modinfo *pa_modinfo_get_by_handle(lt_dlhandle dl, const char *module_name) {
45
46
    pa_modinfo *i;
46
47
    const char* (*func)(void);
 
48
    pa_bool_t (*func2) (void);
47
49
 
48
50
    pa_assert(dl);
49
51
 
61
63
    if ((func = (const char* (*)(void)) pa_load_sym(dl, module_name, PA_SYMBOL_VERSION)))
62
64
        i->version = pa_xstrdup(func());
63
65
 
 
66
    if ((func2 = (pa_bool_t (*)(void)) pa_load_sym(dl, module_name, PA_SYMBOL_LOAD_ONCE)))
 
67
        i->load_once = func2();
 
68
 
64
69
    return i;
65
70
}
66
71