Browse Source

Cleanup headers.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4656 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.9.5
sletz 13 years ago
parent
commit
5f09cb3990
6 changed files with 65 additions and 33 deletions
  1. +57
    -0
      common/JackDriverInfo.h
  2. +1
    -0
      common/JackDriverLoader.cpp
  3. +2
    -30
      common/JackDriverLoader.h
  4. +2
    -3
      common/JackInternalClient.h
  5. +1
    -0
      common/JackServer.h
  6. +2
    -0
      common/driver_interface.h

+ 57
- 0
common/JackDriverInfo.h View File

@@ -0,0 +1,57 @@
/*
Copyright (C) 2001-2005 Paul Davis
Copyright (C) 2004-2008 Grame

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 __JackDriverInfo__
#define __JackDriverInfo__

#include "driver_interface.h"
//#include "JackControlAPI.h"
//#include "JackPlatformPlug.h"
#include "JackDriver.h"
#include "JackSystemDeps.h"

typedef Jack::JackDriverClientInterface* (*driverInitialize) (Jack::JackLockedEngine*, Jack::JackSynchro*, const JSList*);

class SERVER_EXPORT JackDriverInfo
{

private:

driverInitialize fInitialize;
DRIVER_HANDLE fHandle;
Jack::JackDriverClientInterface* fBackend;

public:

JackDriverInfo():fInitialize(NULL),fHandle(NULL),fBackend(NULL)
{}
~JackDriverInfo();

Jack::JackDriverClientInterface* Open(jack_driver_desc_t* driver_desc, Jack::JackLockedEngine*, Jack::JackSynchro*, const JSList*);

Jack::JackDriverClientInterface* GetBackend()
{
return fBackend;
}

};

#endif


+ 1
- 0
common/JackDriverLoader.cpp View File

@@ -20,6 +20,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#include "JackSystemDeps.h"
#include "JackDriverLoader.h"
#include "JackDriverInfo.h"
#include "JackConstants.h"
#include "JackError.h"
#include <getopt.h>


+ 2
- 30
common/JackDriverLoader.h View File

@@ -24,38 +24,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include "driver_interface.h"
#include "JackControlAPI.h"
#include "JackPlatformPlug.h"
#include "JackDriver.h"
#include "JackSystemDeps.h"

typedef jack_driver_desc_t* (*JackDriverDescFunction) ();
typedef Jack::JackDriverClientInterface* (*driverInitialize) (Jack::JackLockedEngine*, Jack::JackSynchro*, const JSList*);

class SERVER_EXPORT JackDriverInfo
{

private:

driverInitialize fInitialize;
DRIVER_HANDLE fHandle;
Jack::JackDriverClientInterface* fBackend;

public:

JackDriverInfo():fInitialize(NULL),fHandle(NULL),fBackend(NULL)
{}
~JackDriverInfo();

Jack::JackDriverClientInterface* Open(jack_driver_desc_t* driver_desc, Jack::JackLockedEngine*, Jack::JackSynchro*, const JSList*);

Jack::JackDriverClientInterface* GetBackend()
{
return fBackend;
}

};
//#include "JackDriver.h"
//#include "JackSystemDeps.h"

jack_driver_desc_t* jack_find_driver_descriptor(JSList* drivers, const char* name);

JSList* jack_drivers_load(JSList* drivers);
JSList* jack_internals_load(JSList* internals);



+ 2
- 3
common/JackInternalClient.h View File

@@ -63,7 +63,6 @@ class JackInternalClient : public JackClient
typedef int (*InitializeCallback)(jack_client_t*, const char*);
typedef int (*InternalInitializeCallback)(jack_client_t*, const JSList* params);
typedef void (*FinishCallback)(void *);
typedef jack_driver_desc_t * (*JackDriverDescFunction) ();

class JackLoadableInternalClient : public JackInternalClient
{
@@ -92,7 +91,7 @@ class JackLoadableInternalClient1 : public JackLoadableInternalClient

InitializeCallback fInitialize;
char fObjectData[JACK_LOAD_INIT_LIMIT];
public:

JackLoadableInternalClient1(JackServer* server, JackSynchro* table, const char* object_data);
@@ -111,7 +110,7 @@ class JackLoadableInternalClient2 : public JackLoadableInternalClient

InternalInitializeCallback fInitialize;
const JSList* fParameters;
public:

JackLoadableInternalClient2(JackServer* server, JackSynchro* table, const JSList* parameters);


+ 1
- 0
common/JackServer.h View File

@@ -24,6 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include "JackCompilerDeps.h"
#include "driver_interface.h"
#include "JackDriverLoader.h"
#include "JackDriverInfo.h"
#include "JackConnectionManager.h"
#include "JackGlobals.h"
#include "JackPlatformPlug.h"


+ 2
- 0
common/driver_interface.h View File

@@ -146,6 +146,8 @@ jack_driver_descriptor_add_parameter(
const char * short_desc, /* A short (~30 chars) description for the user */
const char * long_desc); /* A longer description for the user, if NULL short_desc will be used */

typedef jack_driver_desc_t * (*JackDriverDescFunction) ();

#ifdef __cplusplus
}
#endif


Loading…
Cancel
Save