Browse Source

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2103 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
e11d85964c
4 changed files with 14 additions and 36 deletions
  1. +2
    -0
      common/JackDriverLoader.h
  2. +12
    -3
      common/JackLibClient.cpp
  3. +0
    -1
      common/JackServerGlobals.h
  4. +0
    -32
      common/driver_parse.h

+ 2
- 0
common/JackDriverLoader.h View File

@@ -61,5 +61,7 @@ EXPORT JSList * jack_drivers_load (JSList * drivers);

jack_driver_info_t * jack_load_driver (jack_driver_desc_t * driver_desc);

EXPORT int jack_parse_driver_params (jack_driver_desc_t * desc, int argc, char* argv[], JSList ** param_ptr);

#endif


+ 12
- 3
common/JackLibClient.cpp View File

@@ -29,19 +29,28 @@ namespace Jack
// Used for external C API (JackAPI.cpp)
JackGraphManager* GetGraphManager()
{
return (JackLibGlobals::fGlobals) ? JackLibGlobals::fGlobals->fGraphManager : NULL;
if (JackLibGlobals::fGlobals) {
return JackLibGlobals::fGlobals->fGraphManager;
} else {
return NULL;
}
}

JackEngineControl* GetEngineControl()
{
return (JackLibGlobals::fGlobals) ? JackLibGlobals::fGlobals->fEngineControl : NULL;
if (JackLibGlobals::fGlobals) {
return JackLibGlobals::fGlobals->fEngineControl;
} else {
return NULL;
}
}

JackSynchro** GetSynchroTable()
{
return (JackLibGlobals::fGlobals) ? JackLibGlobals::fGlobals->fSynchroTable : NULL;
return (JackLibGlobals::fGlobals ? JackLibGlobals::fGlobals->fSynchroTable : 0);
}


//-------------------
// Client management
//-------------------


+ 0
- 1
common/JackServerGlobals.h View File

@@ -21,7 +21,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#define __JackServerGlobals__

#include "driver_interface.h"
#include "driver_parse.h"
#include "JackDriverLoader.h"
#include "JackServer.h"
#include <assert.h>


+ 0
- 32
common/driver_parse.h View File

@@ -1,32 +0,0 @@
/*
Copyright (C) 2003 Bob Ham <rah@bash.sh

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

*/

#ifndef __jack_driver_parse_h__
#define __jack_driver_parse_h__

#include "jslist.h"
#include "driver_interface.h"
#include "JackExports.h"

EXPORT int
jack_parse_driver_params (jack_driver_desc_t * desc, int argc, char* argv[], JSList ** param_ptr);

#endif /* __jack_driver_parse_h__ */



Loading…
Cancel
Save