Commit Graph

130 Commits

Author SHA1 Message Date
falkTX 93619ed0c5 Make sure we use python3 (another patch from Fedora) 2019-10-28 11:38:21 +01:00
Filipe Coelho 59550f67ee
Fix client UUID gen, and some warnings (#440)
* Fix generation of client uuid

Signed-off-by: falkTX <falktx@falktx.com>

* Remove all client properties when removed; Cleanup a few things

Signed-off-by: falkTX <falktx@falktx.com>

* Make all uuid function arguments use jack_uuid_t type; Fix warnings

Signed-off-by: falkTX <falktx@falktx.com>

* Rework uuids to never be int, more cleanup

Signed-off-by: falkTX <falktx@falktx.com>
2019-03-18 08:33:50 +01:00
Rui Nuno Capela fed6f1e66d [metadata] Metadata properties implementation. (#383)
* [metadata] Metadata properties implementation.

* [metadata] Fixed for shared server metadata-base accessor; alsofixed coding/naming style.

* [metadata] Fixed a tab for space.

* [metadata] Use of Berkeley DB is now truly optional on configure time.

* [metadata] Fixed tabs for spaces, again.

* [metadata] Fixed for shared metadata-base initialization and external clients.

* [metadata] Blind-fix for windows codebase.

* [metadata] Metadata API moved into client-side library only.

* [metadata] Fixed jack_port_uuid() stubbiness, now returning a proper UUID from port index.

* [metadata] Uniform method names.

* [metadata] Fixed PropertyChangeNotify through server async call.
2018-10-10 16:06:14 +02:00
Filipe Coelho c44a220fbe Merge pull request #257 from sdrik/pull/promiscuous-v2
Secure promiscuous mode
2017-09-15 13:54:22 +02:00
falkTX 2ad48419a7 Add support for internal session files
Thanks to Timo Wischer for the initial work
2017-08-10 17:44:21 +02:00
Filipe Coelho b6caf46088 Merge pull request #270 from y-fujii/fix_msys2_compilation
Fix some issues on Windows.
2017-07-12 14:11:50 +02:00
Yasuhiro Fujii 6758354192 fix compilation on MSYS2. 2017-06-24 14:27:28 +09:00
Karl Linden c21c774855
waf: Nitpick styling for consistency. Fixes #172. 2017-06-16 16:47:22 +02:00
Cédric Schieli 1be958e682 Helper functions needed to secure the promiscuous mode.
The jack_group2gid() function does a thread-safe lookup of a unix gid from a
unix group name.

The jack_promiscuous_perms() function adjusts the permissions of a shared
resource (socket, semaphore, shm segment, ...) referenced by a fd and/or a
path so it can be used by any member of the provided unix group.

By using those functions it will be possible to enable a secure promiscuous
mode. 'Secure' meaning here that one is not forced to launch every clients
with a (way) too permissive 0000 umask.
2017-03-18 14:24:42 +01:00
Adrian Knoth 701f74fa20 Merge pull request #219 from falkTX/master
Use linux futex as JackSynchro
2017-03-12 20:53:13 +01:00
falkTX 112b6bdf39 Use Linux futex as JackSynchro
Includes optimizations for internal clients, but not enabled yet.
2017-03-07 15:16:50 +01:00
Adrian Knoth e0281d82c2 Merge pull request #190 from jackaudio/waf-macosx-fixes
Waf macosx fixes
2017-02-28 11:21:04 +01:00
Karl Linden 4e8e7ecdc2
Use conf.check instead of conf.check_cc. 2016-05-17 07:33:58 +02:00
Karl Linden cf48eedf95
Merge branch 'master' into waf-macosx-fixes.
Move aften check to resolve conflict.
2016-03-31 19:40:12 +02:00
Karl Linden 3dbd4b92fe
Simplify build system logic. Fixes #168. 2016-03-31 19:32:01 +02:00
ethe 7cb81394ec Fixed building AudioAdapter on OSX 2015-12-19 14:42:42 +00:00
Josh de Kock (ethe) bc66447e37 fixed frameworks in wscripts 2015-12-19 14:42:42 +00:00
ethe 8ed3e8228f Fixed linking errors with frameworks for OSX 2015-12-15 19:57:56 +00:00
Karl Linden af99165ef6
Drop problematic CPPFLAGS for MacOSX. 2015-12-13 20:50:59 +01:00
Karl Lindén 1715d63cd8 drop unused Build imports 2015-05-02 12:42:32 +02:00
Cédric Schieli 1cd25cb975 Add JackWaitCallbackDriver
This wrapper driver has the same usage as its parent JackWaitThreadedDriver,
but for non-threaded (callback) drivers. After waiting for Initialize to
return, its main thread simply ends instead of calling the driver's Process
method in a loop. The decorated driver, which must extends JackRestarerDriver
instead of JackWaiterDriver, can restart the wait cycle by calling its
RestartWait method.
2015-04-27 12:19:27 +02:00
Karl Lindén 94efc64f20 use conf.env['SAMPLERATE'] to determine wether samplerate is available instead of conf.is_defined('HAVE_SAMPLERATE') 2015-04-10 16:28:05 +02:00
Karl Lindén ad24b255be move check for samplerate.h to before conf.sub_config('common') and remove the duplicate check in common 2015-04-10 16:21:55 +02:00
Martin Koegler b0d25b67e7 Detect tre as regexp library replacement 2014-01-25 16:40:20 +00:00
Nedko Arnaudov da390836bf wscript: fix build in 32/64 bits mixed mode. github close #39 2013-11-14 04:27:11 +02:00
Stephane Letz 6dc8d3c5a2 Tim Mayberry : Add support for building with mingw compiler. 2013-07-23 14:22:00 +02:00
Nedko Arnaudov ce50e5b0ed waf: configure option for enforcing autostart method 2012-11-24 07:06:31 +02:00
Robin Gareus 33bef4fcb0 add opus support to NetJack2 2012-09-05 16:10:36 +02:00
Adrian Knoth a5eb957b59 wscript: Fix naming of in-server components
In-server components are called netmanager.so, inprocess.so and so on,
not libnetmanager.so.

The waf syntax for this purpose has been changed between waf-1.5 and
waf-1.6.
2012-03-21 16:04:16 +01:00
Nedko Arnaudov 8b6d89e2f2 waf: switch jack.pc task construction to new-waf-style
PREFIX, LIBDIR and JACK_VERSION are fetched from the environment
2012-03-18 17:07:55 +02:00
Nedko Arnaudov 47be1ec8ee waf: fix jack.pc generation 2012-03-18 16:26:35 +02:00
Nedko Arnaudov cc271ca187 Merge branch 'master' into python3-waf-upgrade 2012-03-18 01:00:31 +02:00
Stephane Letz 8bb6248384 Correct linux wscript. 2012-03-16 16:02:40 +01:00
Stephane Letz 2bf4db889a Light synchronization method in JackMessageBuffer::SetInitCallback. 2012-03-16 12:52:12 +01:00
Adrian Knoth a122dbcd75 wscript. Fix relocation link error (missing -fPIC)
Idea for this fix found in
   http://code.google.com/p/waf/issues/detail?id=800#c1
2012-02-15 22:01:03 +01:00
Nedko Arnaudov 329d83c92b swtich from uselib/uselib_local to use 2012-02-15 21:36:44 +02:00
Nedko Arnaudov 971b1656d5 switch from bld.new_task_gen() to bld()
jackdbus needs explicit index because device reservation code
is shared with jackd and waf cannot autodetect this.
2012-02-15 21:30:55 +02:00
Adrian Knoth 662c55669d wscript: Fix install targets
waf complains about missing source files, e.g.:

   could not find 'jack/*.h' in /home/adi/jack2/common

ant_glob fixes the problem
2012-02-12 14:15:23 +01:00
Adrian Knoth f7d6db4b34 wscript: Fix internal waf error (missing features)
waf complains about missing features in the builder, so let's add some.

For the sake of completeness, here's an example error message:

Traceback (most recent call last):
  File "/home/adi/jack2/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Runner.py", line 162, in start
    st=tsk.runnable_status()
  File "/home/adi/jack2/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Task.py", line 285, in runnable_status
    new_sig=self.signature()
  File "/home/adi/jack2/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Task.py", line 274, in signature
    self.sig_implicit_deps()
  File "/home/adi/jack2/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Task.py", line 372, in sig_implicit_deps
    (nodes,names)=self.scan()
  File "/home/adi/jack2/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Tools/c_preproc.py", line 594, in scan
    raise Errors.WafError('%r is missing a feature such as "c", "cxx" or "includes": '%task.generator)
WafError: bld(uselib_local='clientlib', posted=True, features=[], idx=28, uselib='RT SNDFILE', meths=['process_rule', 'process_source'], prec=defaultdict(<type 'list'>, {}), includes=['../linux', '../posix', '../common/jack', '../common'], source=[/home/adi/jack2/example-clients/capture_client.c], mappings={}, path=/home/adi/jack2/example-clients, _name='jack_rec', target='jack_rec') in /home/adi/jack2/example-clients is missing a feature such as "c", "cxx" or "includes":
2012-02-12 14:15:22 +01:00
Adrian Knoth 97a60e49d7 wscript: Fix more tab/space indentation errors 2012-02-12 14:15:22 +01:00
Adrian Knoth 115ec78f21 wscript: Fix jack.pc.in generator
The misc module is no longer available, but we have a subst_pc builder
now. Let's use this instead.
2012-02-12 14:15:22 +01:00
Adrian Knoth a564002176 Fix mixed tab/space indentation in wscript files 2012-02-12 14:15:21 +01:00
Adrian Knoth 58036bc80f Run 2to3 on all wscript files.
Automatically upgrading to python3 syntax, where possible.
2012-02-09 18:13:53 +01:00
sletz c58666dd8c Rename JackProcessSync in JackPosixProcessSync.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4739 0c269be4-1314-0410-8aa9-9f06e86f4224
2012-01-27 11:36:20 +00:00
sletz 6046fbe76b Add JackRequestDecoder class.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4690 0c269be4-1314-0410-8aa9-9f06e86f4224
2012-01-12 14:06:01 +00:00
sletz 9f4df15abb Factorize code the server/client request.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4684 0c269be4-1314-0410-8aa9-9f06e86f4224
2012-01-11 12:51:53 +00:00
sletz aabbb62282 Correct export settings(2).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4663 0c269be4-1314-0410-8aa9-9f06e86f4224
2012-01-04 17:42:10 +00:00
sletz 4b3eacd46b Patch for unresolved symbols in libjacknet.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4550 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-10-24 15:17:01 +00:00
sletz 5a5cc73ac7 New JackTimedDriver class to be used by JackDummyDriver, JackNetDriver and JackNetOneDriver classes.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4522 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-07-29 14:55:00 +00:00
Nedko Arnaudov 509e31d630 fix build when libsamplerate is missing 2011-05-13 03:39:10 +03:00