Browse Source

Port connection callback.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1781 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.70
sletz 17 years ago
parent
commit
cfc2315b4c
33 changed files with 473 additions and 202 deletions
  1. +2
    -1
      ChangeLog
  2. +35
    -3
      common/JackAPI.cpp
  3. +2
    -2
      common/JackChannel.h
  4. +26
    -10
      common/JackClient.cpp
  5. +7
    -3
      common/JackClient.h
  6. +1
    -1
      common/JackClientInterface.h
  7. +8
    -2
      common/JackDebugClient.cpp
  8. +3
    -1
      common/JackDebugClient.h
  9. +1
    -1
      common/JackDriver.cpp
  10. +1
    -1
      common/JackDriver.h
  11. +58
    -27
      common/JackEngine.cpp
  12. +8
    -6
      common/JackEngine.h
  13. +2
    -2
      common/JackExternalClient.cpp
  14. +1
    -1
      common/JackExternalClient.h
  15. +12
    -5
      common/JackGraphManager.cpp
  16. +2
    -1
      common/JackGraphManager.h
  17. +1
    -1
      common/JackLibClient.cpp
  18. +1
    -1
      common/JackLibClient.h
  19. +3
    -1
      common/JackNotification.h
  20. +9
    -6
      common/JackRequest.h
  21. +1
    -1
      common/JackSocketClientChannel.cpp
  22. +2
    -2
      common/JackSocketNotifyChannel.cpp
  23. +1
    -1
      common/JackSocketNotifyChannel.h
  24. +2
    -2
      common/JackThreadedDriver.h
  25. +6
    -6
      macosx/JackMacLibClientRPC.cpp
  26. +3
    -3
      macosx/JackMachNotifyChannel.cpp
  27. +1
    -1
      macosx/JackMachNotifyChannel.h
  28. +4
    -2
      macosx/RPC/JackRPCClient.defs
  29. +8
    -4
      macosx/RPC/JackRPCClient.h
  30. +245
    -95
      macosx/RPC/JackRPCClientServer.c
  31. +15
    -7
      macosx/RPC/JackRPCClientUser.c
  32. +1
    -1
      macosx/RPC/JackRPCEngineServer.c
  33. +1
    -1
      macosx/RPC/JackRPCEngineUser.c

+ 2
- 1
ChangeLog View File

@@ -19,7 +19,8 @@ Tim Blechmann

2008-01-28 Stephane Letz <letz@grame.fr>

* Updated API to match jack 0.109.0 version (in progress). Correct issue in CoreAudio driver.
* Updated API to match jack 0.109.0 version (in progress). Correct issue in CoreAudio driver.
* Port connection callback.

2008-01-25 Stephane Letz <letz@grame.fr>



+ 35
- 3
common/JackAPI.cpp View File

@@ -84,6 +84,9 @@ extern "C"
EXPORT int jack_set_port_registration_callback (jack_client_t *,
JackPortRegistrationCallback
registration_callback, void *arg);
EXPORT int jack_set_port_connect_callback (jack_client_t *,
JackPortConnectCallback
connect_callback, void *arg);
EXPORT int jack_set_graph_order_callback (jack_client_t *,
JackGraphOrderCallback graph_callback,
void *);
@@ -112,9 +115,10 @@ extern "C"
EXPORT int jack_port_tie (jack_port_t *src, jack_port_t *dst);
EXPORT int jack_port_untie (jack_port_t *port);
EXPORT jack_nframes_t jack_port_get_latency (jack_port_t *port);
EXPORT jack_nframes_t jack_port_get_total_latency (jack_client_t *,
EXPORT jack_nframes_t jack_port_get_total_latency (jack_client_t *,
jack_port_t *port);
EXPORT void jack_port_set_latency (jack_port_t *, jack_nframes_t);
EXPORT int jack_recompute_total_latency (jack_client_t*, jack_port_t* port);
EXPORT int jack_recompute_total_latencies (jack_client_t*);
EXPORT int jack_port_set_name (jack_port_t *port, const char *port_name);
EXPORT int jack_port_set_alias (jack_port_t *port, const char *alias);
@@ -242,11 +246,11 @@ EXPORT void jack_set_error_function (void (*func)(const char *))

EXPORT jack_client_t* jack_client_new(const char* client_name)
{
jack_error("jack_client_new: deprecated");
int options = JackUseExactName;
if (getenv("JACK_START_SERVER") == NULL)
options |= JackNoStartServer;

return jack_client_open(client_name, (jack_options_t)options, NULL);
return jack_client_open(client_name, (jack_options_t)options, NULL);
}

EXPORT void* jack_port_get_buffer(jack_port_t* port, jack_nframes_t frames)
@@ -416,8 +420,22 @@ EXPORT void jack_port_set_latency(jack_port_t* port, jack_nframes_t frames)
}
}

EXPORT int jack_recompute_total_latencies(jack_client_t* ext_client, jack_port_t* port)
{
#ifdef __CLIENTDEBUG__
JackLibGlobals::CheckContext();
#endif

// The latency computation is done each time jack_port_get_total_latency is called
return 0;
}

EXPORT int jack_recompute_total_latencies(jack_client_t* ext_client)
{
#ifdef __CLIENTDEBUG__
JackLibGlobals::CheckContext();
#endif

// The latency computation is done each time jack_port_get_total_latency is called
return 0;
}
@@ -691,6 +709,20 @@ EXPORT int jack_set_port_registration_callback(jack_client_t* ext_client, JackPo
}
}

EXPORT int jack_set_port_connect_callback(jack_client_t* ext_client, JackPortConnectCallback portconnect_callback, void* arg)
{
#ifdef __CLIENTDEBUG__
JackLibGlobals::CheckContext();
#endif
JackClient* client = (JackClient*)ext_client;
if (client == NULL) {
jack_error("jack_set_port_connect_callback called with a NULL client");
return -1;
} else {
return client->SetPortConnectCallback(portconnect_callback, arg);
}
}

EXPORT int jack_set_graph_order_callback(jack_client_t* ext_client, JackGraphOrderCallback graph_callback, void* arg)
{
#ifdef __CLIENTDEBUG__


+ 2
- 2
common/JackChannel.h View File

@@ -150,7 +150,7 @@ class JackNotifyChannelInterface
/*
The "sync" parameter allows to choose between "synchronous" and "asynchronous" notification
*/
virtual void ClientNotify(int refnum, const char* name, int notify, int sync, int value, int* result)
virtual void ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2, int* result)
{}

};
@@ -202,7 +202,7 @@ class JackServerNotifyChannelInterface
virtual void Close()
{}

virtual void ClientNotify(int refnum, int notify, int value)
virtual void ClientNotify(int refnum, int notify, int value1, int value2)
{}

};


+ 26
- 10
common/JackClient.cpp View File

@@ -52,6 +52,7 @@ JackClient::JackClient(JackSynchro** table)
fClientRegistration = NULL;
fFreewheel = NULL;
fPortRegistration = NULL;
fPortConnect = NULL;
fSync = NULL;
fProcessArg = NULL;
fGraphOrderArg = NULL;
@@ -62,6 +63,7 @@ JackClient::JackClient(JackSynchro** table)
fFreewheelArg = NULL;
fClientRegistrationArg = NULL;
fPortRegistrationArg = NULL;
fPortConnectArg = NULL;
fSyncArg = NULL;
fConditionnal = 0; // Temporary??
}
@@ -117,12 +119,12 @@ void JackClient::SetupDriverSync(bool freewheel)
\brief Notification received from the server.
*/

int JackClient::ClientNotifyImp(int refnum, const char* name, int notify, int sync, int value)
int JackClient::ClientNotifyImp(int refnum, const char* name, int notify, int sync, int value1, int value)
{
return 0;
}

int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync, int value)
int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2)
{
int res = 0;

@@ -130,11 +132,11 @@ int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync,
switch (notify) {

case kAddClient:
res = ClientNotifyImp(refnum, name, notify, sync, value);
res = ClientNotifyImp(refnum, name, notify, sync, value1, value2);
break;
case kRemoveClient:
res = ClientNotifyImp(refnum, name, notify, sync, value);
res = ClientNotifyImp(refnum, name, notify, sync, value1, value2);
break;
case kActivateClient:
@@ -164,9 +166,9 @@ int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync,
break;

case kBufferSizeCallback:
JackLog("JackClient::kBufferSizeCallback buffer_size = %ld\n", value);
JackLog("JackClient::kBufferSizeCallback buffer_size = %ld\n", value1);
if (fBufferSize)
res = fBufferSize(value, fBufferSizeArg);
res = fBufferSize(value1, fBufferSizeArg);
break;

case kGraphOrderCallback:
@@ -192,15 +194,15 @@ int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync,
break;

case kPortRegistrationOnCallback:
JackLog("JackClient::kPortRegistrationOn port_index = %ld\n", value);
JackLog("JackClient::kPortRegistrationOn port_index = %ld\n", value1);
if (fPortRegistration)
fPortRegistration(value, 1, fPortRegistrationArg);
fPortRegistration(value1, 1, fPortRegistrationArg);
break;

case kPortRegistrationOffCallback:
JackLog("JackClient::kPortRegistrationOff port_index = %ld \n", value);
JackLog("JackClient::kPortRegistrationOff port_index = %ld \n", value1);
if (fPortRegistration)
fPortRegistration(value, 0, fPortRegistrationArg);
fPortRegistration(value1, 0, fPortRegistrationArg);
break;

case kXRunCallback:
@@ -816,6 +818,20 @@ int JackClient::SetPortRegistrationCallback(JackPortRegistrationCallback callbac
}
}

int JackClient::SetPortConnectCallback(JackPortConnectCallback callback, void *arg)
{
if (IsActive()) {
jack_error("You cannot set callbacks on an active client");
return -1;
} else {
GetClientControl()->fCallback[kPortConnectCallback] = (callback != NULL);
GetClientControl()->fCallback[kPortDisconnectCallback] = (callback != NULL);
fPortConnectArg = arg;
fPortConnect = callback;
return 0;
}
}

//------------------
// Internal clients
//------------------


+ 7
- 3
common/JackClient.h View File

@@ -62,8 +62,10 @@ class JackClient : public JackClientInterface, public JackRunnableInterface
JackClientRegistrationCallback fClientRegistration;
JackFreewheelCallback fFreewheel;
JackPortRegistrationCallback fPortRegistration;
JackPortConnectCallback fPortConnect;
JackTimebaseCallback fTimebase;
JackSyncCallback fSync;
void* fProcessArg;
void* fGraphOrderArg;
void* fXrunArg;
@@ -73,6 +75,7 @@ class JackClient : public JackClientInterface, public JackRunnableInterface
void* fClientRegistrationArg;
void* fFreewheelArg;
void* fPortRegistrationArg;
void* fPortConnectArg;
void* fTimebaseArg;
void* fSyncArg;
int fConditionnal;
@@ -92,7 +95,7 @@ class JackClient : public JackClientInterface, public JackRunnableInterface
void CallTimebaseCallback();
int RequestNewPos(jack_position_t* pos);

virtual int ClientNotifyImp(int refnum, const char* name, int notify, int sync, int value);
virtual int ClientNotifyImp(int refnum, const char* name, int notify, int sync, int value1, int value);

public:

@@ -107,7 +110,7 @@ class JackClient : public JackClientInterface, public JackRunnableInterface
virtual JackEngineControl* GetEngineControl() const = 0;

// Notifications
virtual int ClientNotify(int refnum, const char* name, int notify, int sync, int value);
virtual int ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2);

virtual int Activate();
virtual int Deactivate();
@@ -151,7 +154,8 @@ class JackClient : public JackClientInterface, public JackRunnableInterface
virtual int SetClientRegistrationCallback(JackClientRegistrationCallback callback, void* arg);
virtual int SetFreewheelCallback(JackFreewheelCallback callback, void* arg);
virtual int SetPortRegistrationCallback(JackPortRegistrationCallback callback, void* arg);
virtual int SetPortConnectCallback(JackPortConnectCallback callback, void *arg);
// Internal clients
virtual char* GetInternalClientName(int ref);
virtual int InternalClientHandle(const char* client_name, jack_status_t* status);


+ 1
- 1
common/JackClientInterface.h View File

@@ -44,7 +44,7 @@ class EXPORT JackClientInterface

virtual int Close() = 0;

virtual int ClientNotify(int refnum, const char* name, int notify, int sync, int value) = 0;
virtual int ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2) = 0;

virtual JackClientControl* GetClientControl() const = 0;
};


+ 8
- 2
common/JackDebugClient.cpp View File

@@ -136,10 +136,10 @@ JackEngineControl* JackDebugClient::GetEngineControl() const
\brief Notification received from the server.
*/

int JackDebugClient::ClientNotify(int refnum, const char* name, int notify, int sync, int value)
int JackDebugClient::ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2)
{
CheckClient();
return fClient->ClientNotify( refnum, name, notify, sync, value);
return fClient->ClientNotify( refnum, name, notify, sync, value1, value2);
}

int JackDebugClient::Activate()
@@ -486,6 +486,12 @@ int JackDebugClient::SetPortRegistrationCallback(JackPortRegistrationCallback ca
return fClient->SetPortRegistrationCallback(callback, arg);
}

int JackDebugClient::SetPortConnectCallback(JackPortConnectCallback callback, void *arg)
{
CheckClient();
return fClient->SetPortConnectCallback(callback, arg);
}

JackClientControl* JackDebugClient::GetClientControl() const
{
CheckClient();


+ 3
- 1
common/JackDebugClient.h View File

@@ -75,7 +75,7 @@ class JackDebugClient : public JackClient
virtual JackEngineControl* GetEngineControl() const;

// Notifications
int ClientNotify(int refnum, const char* name, int notify, int sync, int value);
int ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2);

int Activate();
int Deactivate();
@@ -119,6 +119,8 @@ class JackDebugClient : public JackClient
int SetClientRegistrationCallback(JackClientRegistrationCallback callback, void* arg);
int SetFreewheelCallback(JackFreewheelCallback callback, void* arg);
int SetPortRegistrationCallback(JackPortRegistrationCallback callback, void* arg);
int SetPortConnectCallback(JackPortConnectCallback callback, void *arg);
JackClientControl* GetClientControl() const;
void CheckClient() const;


+ 1
- 1
common/JackDriver.cpp View File

@@ -150,7 +150,7 @@ void JackDriver::SetupDriverSync(int ref, bool freewheel)
}
}

int JackDriver::ClientNotify(int refnum, const char* name, int notify, int sync, int value)
int JackDriver::ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2)
{
switch (notify) {


+ 1
- 1
common/JackDriver.h View File

@@ -205,7 +205,7 @@ class EXPORT JackDriver : public JackDriverClient

virtual bool IsRealTime();

int ClientNotify(int refnum, const char* name, int notify, int sync, int value);
int ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2);
void SetupDriverSync(int ref, bool freewheel);



+ 58
- 27
common/JackEngine.cpp View File

@@ -134,7 +134,7 @@ void JackEngine::ProcessNext(jack_time_t callback_usecs)
{
fLastSwitchUsecs = callback_usecs;
if (fGraphManager->RunNextGraph()) // True if the graph actually switched to a new state
fChannel->ClientNotify(ALL_CLIENTS, kGraphOrderCallback, 0);
fChannel->ClientNotify(ALL_CLIENTS, kGraphOrderCallback, 0, 0);
fSignal->SignalAll(); // Signal for threads waiting for next cycle
}

@@ -191,12 +191,12 @@ void JackEngine::CheckXRun(jack_time_t callback_usecs) // REVOIR les conditions
if (status != NotTriggered && status != Finished) {
jack_error("JackEngine::XRun: client = %s was not run: state = %ld", client->GetClientControl()->fName, status);
fChannel->ClientNotify(ALL_CLIENTS, kXRunCallback, 0); // Notify all clients
fChannel->ClientNotify(ALL_CLIENTS, kXRunCallback, 0, 0); // Notify all clients
}
if (status == Finished && (long)(finished_date - callback_usecs) > 0) {
jack_error("JackEngine::XRun: client %s finished after current callback", client->GetClientControl()->fName);
fChannel->ClientNotify(ALL_CLIENTS, kXRunCallback, 0); // Notify all clients
fChannel->ClientNotify(ALL_CLIENTS, kXRunCallback, 0, 0); // Notify all clients
}
}
}
@@ -206,7 +206,7 @@ void JackEngine::CheckXRun(jack_time_t callback_usecs) // REVOIR les conditions
// Notifications
//---------------

void JackEngine::NotifyClient(int refnum, int event, int sync, int value)
void JackEngine::NotifyClient(int refnum, int event, int sync, int value1, int value2)
{
JackClientInterface* client = fClientTable[refnum];
@@ -214,21 +214,21 @@ void JackEngine::NotifyClient(int refnum, int event, int sync, int value)
if (!client) {
JackLog("JackEngine::NotifyClient: client not available anymore\n");
} else if (client->GetClientControl()->fCallback[event]) {
if (client->ClientNotify(refnum, client->GetClientControl()->fName, event, sync, value) < 0)
jack_error("NotifyClient fails name = %s event = %ld = val = %ld", client->GetClientControl()->fName, event, value);
if (client->ClientNotify(refnum, client->GetClientControl()->fName, event, sync, value1, value2) < 0)
jack_error("NotifyClient fails name = %s event = %ld = val1 = %ld val2 = %ld", client->GetClientControl()->fName, event, value1, value2);
} else {
JackLog("JackEngine::NotifyClient: no callback for event = %ld\n", event);
}
}

void JackEngine::NotifyClients(int event, int sync, int value)
void JackEngine::NotifyClients(int event, int sync, int value1, int value2)
{
for (int i = 0; i < CLIENT_NUM; i++) {
JackClientInterface* client = fClientTable[i];
if (client) {
if (client->GetClientControl()->fCallback[event]) {
if (client->ClientNotify(i, client->GetClientControl()->fName, event, sync, value) < 0)
jack_error("NotifyClient fails name = %s event = %ld = val = %ld", client->GetClientControl()->fName, event, value);
if (client->ClientNotify(i, client->GetClientControl()->fName, event, sync, value1, value2) < 0)
jack_error("NotifyClient fails name = %s event = %ld = val1 = %ld val2 = %ld", client->GetClientControl()->fName, event, value1, value2);
} else {
JackLog("JackEngine::NotifyClients: no callback for event = %ld\n", event);
}
@@ -242,11 +242,11 @@ int JackEngine::NotifyAddClient(JackClientInterface* new_client, const char* nam
for (int i = 0; i < CLIENT_NUM; i++) {
JackClientInterface* old_client = fClientTable[i];
if (old_client) {
if (old_client->ClientNotify(refnum, name, kAddClient, true, 0) < 0) {
if (old_client->ClientNotify(refnum, name, kAddClient, true, 0, 0) < 0) {
jack_error("NotifyAddClient old_client fails name = %s", old_client->GetClientControl()->fName);
return -1;
}
if (new_client->ClientNotify(i, old_client->GetClientControl()->fName, kAddClient, true, 0) < 0) {
if (new_client->ClientNotify(i, old_client->GetClientControl()->fName, kAddClient, true, 0, 0) < 0) {
jack_error("NotifyAddClient new_client fails name = %s", name);
return -1;
}
@@ -262,7 +262,7 @@ void JackEngine::NotifyRemoveClient(const char* name, int refnum)
for (int i = 0; i < CLIENT_NUM; i++) {
JackClientInterface* client = fClientTable[i];
if (client) {
client->ClientNotify(refnum, name, kRemoveClient, true, 0);
client->ClientNotify(refnum, name, kRemoveClient, true, 0, 0);
}
}
}
@@ -272,42 +272,47 @@ void JackEngine::NotifyXRun(jack_time_t callback_usecs)
{
// Use the audio thread => request thread communication channel
fEngineControl->ResetFrameTime(callback_usecs);
fChannel->ClientNotify(ALL_CLIENTS, kXRunCallback, 0);
fChannel->ClientNotify(ALL_CLIENTS, kXRunCallback, 0, 0);
}

void JackEngine::NotifyXRun(int refnum)
{
if (refnum == ALL_CLIENTS) {
NotifyClients(kXRunCallback, false, 0);
NotifyClients(kXRunCallback, false, 0, 0);
} else {
NotifyClient(refnum, kXRunCallback, false, 0);
NotifyClient(refnum, kXRunCallback, false, 0, 0);
}
}

void JackEngine::NotifyGraphReorder()
{
NotifyClients(kGraphOrderCallback, false, 0);
NotifyClients(kGraphOrderCallback, false, 0, 0);
}

void JackEngine::NotifyBufferSize(jack_nframes_t nframes)
{
NotifyClients(kBufferSizeCallback, true, nframes);
NotifyClients(kBufferSizeCallback, true, nframes, 0);
}

void JackEngine::NotifyFreewheel(bool onoff)
{
fEngineControl->fRealTime = !onoff;
NotifyClients((onoff ? kStartFreewheelCallback : kStopFreewheelCallback), true, 0);
NotifyClients((onoff ? kStartFreewheelCallback : kStopFreewheelCallback), true, 0, 0);
}

void JackEngine::NotifyPortRegistation(jack_port_id_t port_index, bool onoff)
{
NotifyClients((onoff ? kPortRegistrationOnCallback : kPortRegistrationOffCallback), false, port_index);
NotifyClients((onoff ? kPortRegistrationOnCallback : kPortRegistrationOffCallback), false, port_index, 0);
}

void JackEngine::NotifyPortConnect(jack_port_id_t src, jack_port_id_t dst, bool onoff)
{
NotifyClients((onoff ? kPortConnectCallback : kPortDisconnectCallback), false, src, dst);
}

void JackEngine::NotifyActivate(int refnum)
{
NotifyClient(refnum, kActivateClient, true, 0);
NotifyClient(refnum, kActivateClient, true, 0, 0);
}

//----------------------------
@@ -693,8 +698,11 @@ int JackEngine::PortConnect(int refnum, jack_port_id_t src, jack_port_id_t dst)
" \"%s\" is not active", client->GetClientControl()->fName);
return -1;
}

return fGraphManager->Connect(src, dst);
int res = fGraphManager->Connect(src, dst);
if (res == 0)
NotifyPortConnect(src, dst, true);
return res;
}

int JackEngine::PortDisconnect(int refnum, jack_port_id_t src, jack_port_id_t dst)
@@ -702,12 +710,35 @@ int JackEngine::PortDisconnect(int refnum, jack_port_id_t src, jack_port_id_t ds
JackLog("JackEngine::PortDisconnect src = %d dst = %d\n", src, dst);

if (dst == ALL_PORTS) {
return fGraphManager->DisconnectAll(src);
/*
jack_int_t connections[CONNECTION_NUM];
JackPort* port = fGraphManager->GetPort(src);
fGraphManager->GetConnections(src, connections);
if (fGraphManager->DisconnectAll(src) < 0)
return -1;
if (port->fFlags & JackPortIsOutput) {
for (int i = 0; (i < CONNECTION_NUM) && (connections[i] != EMPTY); i++) {
NotifyPortConnect(src, connections[i], false);
}
} else {
for (int i = 0; (i < CONNECTION_NUM) && (connections[i] != EMPTY); i++) {
NotifyPortConnect(connections[i], src, false);
}
}
*/
if (fGraphManager->DisconnectAll(src) < 0)
return -1;
return 0;
} else if (fGraphManager->CheckPorts(src, dst) < 0) {
return -1;
} else if (fGraphManager->Disconnect(src, dst) == 0) {
NotifyPortConnect(src, dst, false);
return 0;
} else {
return (fGraphManager->CheckPorts(src, dst) < 0)
? -1
: fGraphManager->Disconnect(src, dst);
}
return -1;
}
}

//----------------------


+ 8
- 6
common/JackEngine.h View File

@@ -64,7 +64,10 @@ class JackEngine
int AllocateRefnum();
void ReleaseRefnum(int ref);

void NotifyClient(int refnum, int event, int sync, int value1, int value2);
void NotifyClients(int event, int sync, int value1, int value2);
public:

JackEngine(JackGraphManager* manager, JackSynchro** table, JackEngineControl* controler);
@@ -84,7 +87,7 @@ class JackEngine
int ClientActivate(int refnum);
int ClientDeactivate(int refnum);
// Internal lient management
// Internal client management
int GetInternalClientName(int int_ref, char* name_res);
int InternalClientHandle(const char* client_name, int* status, int* int_ref);
int InternalClientUnload(int refnum, int* status);
@@ -106,15 +109,14 @@ class JackEngine
// Graph
bool Process(jack_time_t callback_usecs);
// Notifications
void NotifyClient(int refnum, int event, int sync, int value);
void NotifyClients(int event, int sync, int value);
void NotifyXRun(jack_time_t callback_usecs);
// Notifications
void NotifyXRun(jack_time_t callback_usecs);
void NotifyXRun(int refnum);
void NotifyGraphReorder();
void NotifyBufferSize(jack_nframes_t nframes);
void NotifyFreewheel(bool onoff);
void NotifyPortRegistation(jack_port_id_t port_index, bool onoff);
void NotifyPortConnect(jack_port_id_t src, jack_port_id_t dst, bool onoff);
void NotifyActivate(int refnum);
};



+ 2
- 2
common/JackExternalClient.cpp View File

@@ -36,11 +36,11 @@ JackExternalClient::~JackExternalClient()
delete fChannel;
}

int JackExternalClient::ClientNotify(int refnum, const char* name, int notify, int sync, int value)
int JackExternalClient::ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2)
{
int result = -1;
JackLog("JackExternalClient::ClientNotify ref = %ld name = %s notify = %ld\n", refnum, name, notify);
fChannel->ClientNotify(refnum, name, notify, sync, value, &result);
fChannel->ClientNotify(refnum, name, notify, sync, value1, value2, &result);
return result;
}



+ 1
- 1
common/JackExternalClient.h View File

@@ -49,7 +49,7 @@ class JackExternalClient : public JackClientInterface
int Open(const char* name, int refnum, int* shared_client);
int Close();

int ClientNotify(int refnum, const char* name, int notify, int sync, int value);
int ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2);

JackClientControl* GetClientControl() const;
};


+ 12
- 5
common/JackGraphManager.cpp View File

@@ -397,7 +397,7 @@ void JackGraphManager::DisconnectAllInput(jack_port_id_t port_index)

for (int i = 0; i < PORT_NUM; i++) {
if (manager->IsConnected(i, port_index)) {
JackLog("JackGraphManager::Disconnect i = %ld port_index = %ld\n", i, port_index);
JackLog("JackGraphManager::Disconnect i = %ld port_index = %ld\n", i, port_index);
Disconnect(i, port_index);
}
}
@@ -411,8 +411,8 @@ void JackGraphManager::DisconnectAllOutput(jack_port_id_t port_index)
JackConnectionManager* manager = WriteNextStateStart();

const jack_int_t* connections = manager->GetConnections(port_index);
while (connections[0] != EMPTY) {
Disconnect(port_index, connections[0]); // Warning : Disconnect shift port to left
while (connections[0] != EMPTY) {
Disconnect(port_index, connections[0]); // Warning : Disconnect shift port to left
}
WriteNextStateStop();
}
@@ -424,13 +424,20 @@ int JackGraphManager::DisconnectAll(jack_port_id_t port_index)

JackPort* port = GetPort(port_index);
if (port->fFlags & JackPortIsOutput) {
DisconnectAllOutput(port_index);
DisconnectAllOutput(port_index);
} else {
DisconnectAllInput(port_index);
DisconnectAllInput(port_index);
}
return 0;
}

// Server
void JackGraphManager::GetConnections(jack_port_id_t port_index, jack_int_t* res)
{
const jack_int_t* connections = ReadCurrentState()->GetConnections(port_index);
memcpy(res, connections, sizeof(jack_int_t) * CONNECTION_NUM);
}

// Server
void JackGraphManager::Activate(int refnum)
{


+ 2
- 1
common/JackGraphManager.h View File

@@ -78,7 +78,8 @@ class JackGraphManager : public JackShmMem, public JackAtomicState<JackConnectio

int ConnectedTo(jack_port_id_t port_src, const char* port_name);
const char** GetConnections(jack_port_id_t port_index);
const char** GetPorts(const char* port_name_pattern, const char* type_name_pattern, unsigned long flags);
void GetConnections(jack_port_id_t port_index, jack_int_t* connections);
const char** GetPorts(const char* port_name_pattern, const char* type_name_pattern, unsigned long flags);

int CheckPorts(const char* src, const char* dst, jack_port_id_t* src_index, jack_port_id_t* dst_index);
int CheckPorts(jack_port_id_t port_src, jack_port_id_t port_dst);


+ 1
- 1
common/JackLibClient.cpp View File

@@ -128,7 +128,7 @@ error:
// Notifications received from the server
// TODO this should be done once for all clients in the process, when a shared notification channel
// will be shared by all clients...
int JackLibClient::ClientNotifyImp(int refnum, const char* name, int notify, int sync, int value)
int JackLibClient::ClientNotifyImp(int refnum, const char* name, int notify, int sync, int value1, int value2)
{
int res = 0;



+ 1
- 1
common/JackLibClient.h View File

@@ -46,7 +46,7 @@ class JackLibClient : public JackClient

int Open(const char* server_name, const char* name, jack_options_t options, jack_status_t* status);

int ClientNotifyImp(int refnum, const char* name, int notify, int sync, int value);
int ClientNotifyImp(int refnum, const char* name, int notify, int sync, int value1, int value2);

JackGraphManager* GetGraphManager() const;
JackEngineControl* GetEngineControl() const;


+ 3
- 1
common/JackNotification.h View File

@@ -33,7 +33,9 @@ namespace Jack
kStopFreewheelCallback = 7,
kPortRegistrationOnCallback = 8,
kPortRegistrationOffCallback = 9,
kDeadClient = 10,
kPortConnectCallback = 10,
kPortDisconnectCallback = 11,
kDeadClient = 12,
kMaxNotification
};



+ 9
- 6
common/JackRequest.h View File

@@ -997,13 +997,14 @@ struct JackClientNotification
char fName[JACK_CLIENT_NAME_SIZE + 1];
int fRefNum;
int fNotify;
int fValue;
int fValue1;
int fValue2;
int fSync;

JackClientNotification(): fNotify( -1), fValue( -1)
JackClientNotification(): fNotify(-1), fValue1(-1), fValue2(-1)
{}
JackClientNotification(const char* name, int refnum, int notify, int sync, int value)
: fRefNum(refnum), fNotify(notify), fValue(value), fSync(sync)
JackClientNotification(const char* name, int refnum, int notify, int sync, int value1, int value2)
: fRefNum(refnum), fNotify(notify), fValue1(value1), fValue2(value2), fSync(sync)
{
snprintf(fName, sizeof(fName), "%s", name);
}
@@ -1013,7 +1014,8 @@ struct JackClientNotification
CheckRes(trans->Read(&fName, JACK_CLIENT_NAME_SIZE + 1));
CheckRes(trans->Read(&fRefNum, sizeof(int)));
CheckRes(trans->Read(&fNotify, sizeof(int)));
CheckRes(trans->Read(&fValue, sizeof(int)));
CheckRes(trans->Read(&fValue1, sizeof(int)));
CheckRes(trans->Read(&fValue2, sizeof(int)));
CheckRes(trans->Read(&fSync, sizeof(int)));
return 0;
}
@@ -1023,7 +1025,8 @@ struct JackClientNotification
CheckRes(trans->Write(&fName, JACK_CLIENT_NAME_SIZE + 1));
CheckRes(trans->Write(&fRefNum, sizeof(int)));
CheckRes(trans->Write(&fNotify, sizeof(int)));
CheckRes(trans->Write(&fValue, sizeof(int)));
CheckRes(trans->Write(&fValue1, sizeof(int)));
CheckRes(trans->Write(&fValue2, sizeof(int)));
CheckRes(trans->Write(&fSync, sizeof(int)));
return 0;
}


+ 1
- 1
common/JackSocketClientChannel.cpp View File

@@ -310,7 +310,7 @@ bool JackSocketClientChannel::Execute()
goto error;
}

res.fResult = fClient->ClientNotify(event.fRefNum, event.fName, event.fNotify, event.fSync, event.fValue);
res.fResult = fClient->ClientNotify(event.fRefNum, event.fName, event.fNotify, event.fSync, event.fValue1, event.fValue2);

if (event.fSync) {
if (res.Write(fNotificationSocket) < 0) {


+ 2
- 2
common/JackSocketNotifyChannel.cpp View File

@@ -46,9 +46,9 @@ void JackSocketNotifyChannel::Close()
fNotifySocket.Close();
}

void JackSocketNotifyChannel::ClientNotify(int refnum, const char* name, int notify, int sync, int value, int* result)
void JackSocketNotifyChannel::ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2, int* result)
{
JackClientNotification event(name, refnum, notify, sync, value);
JackClientNotification event(name, refnum, notify, sync, value1, value2);
JackResult res;

// Send notification


+ 1
- 1
common/JackSocketNotifyChannel.h View File

@@ -47,7 +47,7 @@ class JackSocketNotifyChannel : public JackNotifyChannelInterface
int Open(const char* name); // Open the Server/Client connection
void Close(); // Close the Server/Client connection

void ClientNotify(int refnum, const char* name, int notify, int sync, int value, int* result);
void ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2, int* result);
};

} // end of namespace


+ 2
- 2
common/JackThreadedDriver.h View File

@@ -127,9 +127,9 @@ class JackThreadedDriver : public JackDriverClientInterface, public JackRunnable
return fDriver->ProcessSlaves();
}

virtual int ClientNotify(int refnum, const char* name, int notify, int sync, int value)
virtual int ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2)
{
return fDriver->ClientNotify(refnum, name, notify, sync, value);
return fDriver->ClientNotify(refnum, name, notify, sync, value1, value2);
}

virtual JackClientControl* GetClientControl() const


+ 6
- 6
macosx/JackMacLibClientRPC.cpp View File

@@ -27,21 +27,21 @@ using namespace Jack;

#define rpc_type kern_return_t // for astyle

rpc_type rpc_jack_client_sync_notify(mach_port_t client_port, int refnum, client_name_t name, int notify, int value, int* result)
rpc_type rpc_jack_client_sync_notify(mach_port_t client_port, int refnum, client_name_t name, int notify, int value1, int value2, int* result)
{
JackLog("rpc_jack_client_sync_notify ref = %ld name = %s notify = %ld value = %ld \n", refnum, name, notify, value);
JackLog("rpc_jack_client_sync_notify ref = %ld name = %s notify = %ld val1 = %ld val2 = %ld\n", refnum, name, notify, value1, value2);
JackClient* client = JackLibGlobals::fGlobals->fClientTable[client_port];
assert(client);
*result = client->ClientNotify(refnum, name, notify, true, value);
*result = client->ClientNotify(refnum, name, notify, true, value1, value2);
return KERN_SUCCESS;
}

rpc_type rpc_jack_client_async_notify(mach_port_t client_port, int refnum, client_name_t name, int notify, int value)
rpc_type rpc_jack_client_async_notify(mach_port_t client_port, int refnum, client_name_t name, int notify, int value1, int value2)
{
JackLog("rpc_jack_client_async_notify ref = %ld name = %s notify = %ld value = %ld \n", refnum, name, notify, value);
JackLog("rpc_jack_client_async_notify ref = %ld name = %s notify = %ld val1 = %ld val2 = %ld\n", refnum, name, notify, value1, value2);
JackClient* client = JackLibGlobals::fGlobals->fClientTable[client_port];
assert(client);
client->ClientNotify(refnum, name, notify, false, value);
client->ClientNotify(refnum, name, notify, false, value1, value2);
return KERN_SUCCESS;
}


+ 3
- 3
macosx/JackMachNotifyChannel.cpp View File

@@ -48,11 +48,11 @@ void JackMachNotifyChannel::Close()
fClientPort.DisconnectPort();
}

void JackMachNotifyChannel::ClientNotify(int refnum, const char* name, int notify, int sync, int value, int* result)
void JackMachNotifyChannel::ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2, int* result)
{
kern_return_t res = (sync)
? rpc_jack_client_sync_notify(fClientPort.GetPort(), refnum, (char*)name, notify, value, result)
: rpc_jack_client_async_notify(fClientPort.GetPort(), refnum, (char*)name, notify, value);
? rpc_jack_client_sync_notify(fClientPort.GetPort(), refnum, (char*)name, notify, value1, value2, result)
: rpc_jack_client_async_notify(fClientPort.GetPort(), refnum, (char*)name, notify, value1, value2);
if (res == KERN_SUCCESS) {
*result = 0;
} else {


+ 1
- 1
macosx/JackMachNotifyChannel.h View File

@@ -47,7 +47,7 @@ class JackMachNotifyChannel : public JackNotifyChannelInterface
int Open(const char* name); // Open the Server/Client connection
void Close(); // Close the Server/Client connection

void ClientNotify(int refnum, const char* name, int notify, int sync, int value, int* result);
void ClientNotify(int refnum, const char* name, int notify, int sync, int value1, int value2, int* result);
};

} // end of namespace


+ 4
- 2
macosx/RPC/JackRPCClient.defs View File

@@ -32,7 +32,8 @@ routine rpc_jack_client_sync_notify(
refnum : int;
client_name : client_name_t;
notify : int;
value : int;
value1 : int;
value2 : int;
out result : int);

simpleroutine rpc_jack_client_async_notify(
@@ -40,4 +41,5 @@ simpleroutine rpc_jack_client_async_notify(
refnum : int;
client_name : client_name_t;
notify : int;
value : int);
value1 : int;
value2 : int);

+ 8
- 4
macosx/RPC/JackRPCClient.h View File

@@ -55,7 +55,8 @@ kern_return_t rpc_jack_client_sync_notify
int refnum,
client_name_t client_name,
int notify,
int value,
int value1,
int value2,
int *result
);

@@ -71,7 +72,8 @@ kern_return_t rpc_jack_client_async_notify
int refnum,
client_name_t client_name,
int notify,
int value
int value1,
int value2
);

__END_DECLS
@@ -101,7 +103,8 @@ __END_DECLS
int refnum;
client_name_t client_name;
int notify;
int value;
int value1;
int value2;
} __Request__rpc_jack_client_sync_notify_t;
#ifdef __MigPackStructs
#pragma pack()
@@ -116,7 +119,8 @@ __END_DECLS
int refnum;
client_name_t client_name;
int notify;
int value;
int value1;
int value2;
} __Request__rpc_jack_client_async_notify_t;
#ifdef __MigPackStructs
#pragma pack()


+ 245
- 95
macosx/RPC/JackRPCClientServer.c View File

@@ -1,6 +1,6 @@
/*
* IDENTIFICATION:
* stub generated Thu Jan 3 14:42:41 2008
* stub generated Mon Jan 28 15:04:07 2008
* with a MiG generated Sun Sep 23 15:44:06 PDT 2007 by root@hoosier.apple.com
* OPTIONS:
*/
@@ -113,7 +113,8 @@
int refnum;
client_name_t client_name;
int notify;
int value;
int value1;
int value2;
} __Request__rpc_jack_client_sync_notify_t;
#ifdef __MigPackStructs
#pragma pack()
@@ -128,7 +129,8 @@
int refnum;
client_name_t client_name;
int notify;
int value;
int value1;
int value2;
} __Request__rpc_jack_client_async_notify_t;
#ifdef __MigPackStructs
#pragma pack()
@@ -250,25 +252,45 @@ mig_internal novalue _Xrpc_jack_client_async_notify
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */

#ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__int_rep__int__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__int_rep__int((int *)(a), f)
#elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__int_rep__int32_t__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__int_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */

#ifndef __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__int_rep__int__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__int_rep__int((int *)(a), f)
#elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__int_rep__int32_t__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__int_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */

#ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
#if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
@@ -330,25 +352,45 @@ mig_internal novalue _Xrpc_jack_client_async_notify
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */

#ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__char_rep__int__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__char_rep__int((int *)(a), f)
#elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__char_rep__int32_t__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__char_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */

#ifndef __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__char_rep__int__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__char_rep__int((int *)(a), f)
#elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__char_rep__int32_t__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__char_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */

#ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined
#if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
@@ -410,25 +452,45 @@ mig_internal novalue _Xrpc_jack_client_async_notify
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */

#ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__float_rep__int__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__float_rep__int((int *)(a), f)
#elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__float_rep__int32_t__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(a, f) \
__NDR_convert__float_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */

#ifndef __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__float_rep__int__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__float_rep__int((int *)(a), f)
#elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__float_rep__int32_t__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(a, f) \
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(a, f) \
__NDR_convert__float_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */


mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_sync_notify_t(__attribute__((__unused__)) __Request__rpc_jack_client_sync_notify_t *In0P)
@@ -444,7 +506,8 @@ mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_sync_notify_t(_
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined) || \
defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
if (In0P->NDR.int_rep != NDR_record.int_rep) {
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.int_rep);
@@ -455,16 +518,20 @@ mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_sync_notify_t(_
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.int_rep);
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value(&In0P->value, In0P->NDR.int_rep);
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1(&In0P->value1, In0P->NDR.int_rep);
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2(&In0P->value2, In0P->NDR.int_rep);
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
}
#endif /* defined(__NDR_convert__int_rep...) */

#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined) || \
defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
if (In0P->NDR.char_rep != NDR_record.char_rep) {
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.char_rep);
@@ -475,16 +542,20 @@ mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_sync_notify_t(_
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.char_rep);
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value(&In0P->value, In0P->NDR.char_rep);
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1(&In0P->value1, In0P->NDR.char_rep);
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2(&In0P->value2, In0P->NDR.char_rep);
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
}
#endif /* defined(__NDR_convert__char_rep...) */

#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined) || \
defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__client_name__defined) || \
defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined) || \
defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined) || \
defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
if (In0P->NDR.float_rep != NDR_record.float_rep) {
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__refnum(&In0P->refnum, In0P->NDR.float_rep);
@@ -495,9 +566,12 @@ mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_sync_notify_t(_
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify(&In0P->notify, In0P->NDR.float_rep);
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__notify__defined */
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value(&In0P->value, In0P->NDR.float_rep);
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value__defined */
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1(&In0P->value1, In0P->NDR.float_rep);
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value1__defined */
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2(&In0P->value2, In0P->NDR.float_rep);
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_sync_notify_t__value2__defined */
}
#endif /* defined(__NDR_convert__float_rep...) */

@@ -520,7 +594,8 @@ kern_return_t rpc_jack_client_sync_notify
int refnum,
client_name_t client_name,
int notify,
int value,
int value1,
int value2,
int *result
);

@@ -538,7 +613,8 @@ mig_internal novalue _Xrpc_jack_client_sync_notify
int refnum;
client_name_t client_name;
int notify;
int value;
int value1;
int value2;
mach_msg_trailer_t trailer;
} Request;
#ifdef __MigPackStructs
@@ -570,7 +646,7 @@ mig_internal novalue _Xrpc_jack_client_sync_notify
{ MIG_RETURN_ERROR(OutP, check_result); }
#endif /* defined(__MIG_check__Request__rpc_jack_client_sync_notify_t__defined) */

OutP->RetCode = rpc_jack_client_sync_notify(In0P->Head.msgh_request_port, In0P->refnum, In0P->client_name, In0P->notify, In0P->value, &OutP->result);
OutP->RetCode = rpc_jack_client_sync_notify(In0P->Head.msgh_request_port, In0P->refnum, In0P->client_name, In0P->notify, In0P->value1, In0P->value2, &OutP->result);
if (OutP->RetCode != KERN_SUCCESS) {
MIG_RETURN_ERROR(OutP, OutP->RetCode);
}
@@ -646,25 +722,45 @@ mig_internal novalue _Xrpc_jack_client_sync_notify
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined */

#ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
#ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__int_rep__int__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__int_rep__int((int *)(a), f)
#elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__int_rep__int32_t__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__int_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined */
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined */

#ifndef __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#if defined(__NDR_convert__int_rep__JackRPCClient__int__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__int_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__int_rep__int__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__int_rep__int((int *)(a), f)
#elif defined(__NDR_convert__int_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__int_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__int_rep__int32_t__defined)
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__int_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined */

#ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
#if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
@@ -726,25 +822,45 @@ mig_internal novalue _Xrpc_jack_client_sync_notify
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined */

#ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
#ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__char_rep__int__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__char_rep__int((int *)(a), f)
#elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__char_rep__int32_t__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__char_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined */

#ifndef __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#if defined(__NDR_convert__char_rep__JackRPCClient__int__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__char_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__char_rep__int__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__char_rep__int((int *)(a), f)
#elif defined(__NDR_convert__char_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__char_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__char_rep__int32_t__defined)
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__char_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined */
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined */

#ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined
#if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
@@ -806,25 +922,45 @@ mig_internal novalue _Xrpc_jack_client_sync_notify
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined */

#ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
#ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__float_rep__int__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__float_rep__int((int *)(a), f)
#elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__float_rep__int32_t__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(a, f) \
__NDR_convert__float_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined */

#ifndef __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#if defined(__NDR_convert__float_rep__JackRPCClient__int__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__float_rep__JackRPCClient__int((int *)(a), f)
#elif defined(__NDR_convert__float_rep__int__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__float_rep__int((int *)(a), f)
#elif defined(__NDR_convert__float_rep__JackRPCClient__int32_t__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__float_rep__JackRPCClient__int32_t((int32_t *)(a), f)
#elif defined(__NDR_convert__float_rep__int32_t__defined)
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(a, f) \
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined
#define __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(a, f) \
__NDR_convert__float_rep__int32_t((int32_t *)(a), f)
#endif /* defined(__NDR_convert__*__defined) */
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined */
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined */


mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_async_notify_t(__attribute__((__unused__)) __Request__rpc_jack_client_async_notify_t *In0P)
@@ -840,7 +976,8 @@ mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_async_notify_t(
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined)
defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined) || \
defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
if (In0P->NDR.int_rep != NDR_record.int_rep) {
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.int_rep);
@@ -851,16 +988,20 @@ mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_async_notify_t(
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.int_rep);
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value(&In0P->value, In0P->NDR.int_rep);
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value__defined */
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1(&In0P->value1, In0P->NDR.int_rep);
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
#if defined(__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
__NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2(&In0P->value2, In0P->NDR.int_rep);
#endif /* __NDR_convert__int_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
}
#endif /* defined(__NDR_convert__int_rep...) */

#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined)
defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined) || \
defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
if (In0P->NDR.char_rep != NDR_record.char_rep) {
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.char_rep);
@@ -871,16 +1012,20 @@ mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_async_notify_t(
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.char_rep);
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value(&In0P->value, In0P->NDR.char_rep);
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value__defined */
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1(&In0P->value1, In0P->NDR.char_rep);
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
#if defined(__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
__NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2(&In0P->value2, In0P->NDR.char_rep);
#endif /* __NDR_convert__char_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
}
#endif /* defined(__NDR_convert__char_rep...) */

#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined) || \
defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__client_name__defined) || \
defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined) || \
defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined)
defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined) || \
defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
if (In0P->NDR.float_rep != NDR_record.float_rep) {
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__refnum(&In0P->refnum, In0P->NDR.float_rep);
@@ -891,9 +1036,12 @@ mig_internal kern_return_t __MIG_check__Request__rpc_jack_client_async_notify_t(
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify(&In0P->notify, In0P->NDR.float_rep);
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__notify__defined */
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value(&In0P->value, In0P->NDR.float_rep);
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value__defined */
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1(&In0P->value1, In0P->NDR.float_rep);
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value1__defined */
#if defined(__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined)
__NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2(&In0P->value2, In0P->NDR.float_rep);
#endif /* __NDR_convert__float_rep__Request__rpc_jack_client_async_notify_t__value2__defined */
}
#endif /* defined(__NDR_convert__float_rep...) */

@@ -916,7 +1064,8 @@ kern_return_t rpc_jack_client_async_notify
int refnum,
client_name_t client_name,
int notify,
int value
int value1,
int value2
);

/* SimpleRoutine rpc_jack_client_async_notify */
@@ -933,7 +1082,8 @@ mig_internal novalue _Xrpc_jack_client_async_notify
int refnum;
client_name_t client_name;
int notify;
int value;
int value1;
int value2;
mach_msg_trailer_t trailer;
} Request;
#ifdef __MigPackStructs
@@ -965,7 +1115,7 @@ mig_internal novalue _Xrpc_jack_client_async_notify
{ MIG_RETURN_ERROR(OutP, check_result); }
#endif /* defined(__MIG_check__Request__rpc_jack_client_async_notify_t__defined) */

OutP->RetCode = rpc_jack_client_async_notify(In0P->Head.msgh_request_port, In0P->refnum, In0P->client_name, In0P->notify, In0P->value);
OutP->RetCode = rpc_jack_client_async_notify(In0P->Head.msgh_request_port, In0P->refnum, In0P->client_name, In0P->notify, In0P->value1, In0P->value2);
__AfterRcvSimple(1001, "rpc_jack_client_async_notify")
}

@@ -995,9 +1145,9 @@ const struct JackRPCClient_subsystem {
(vm_address_t)0,
{
{ (mig_impl_routine_t) 0,
(mig_stub_routine_t) _Xrpc_jack_client_sync_notify, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__rpc_jack_client_sync_notify_t)},
(mig_stub_routine_t) _Xrpc_jack_client_sync_notify, 7, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__rpc_jack_client_sync_notify_t)},
{ (mig_impl_routine_t) 0,
(mig_stub_routine_t) _Xrpc_jack_client_async_notify, 5, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__rpc_jack_client_async_notify_t)},
(mig_stub_routine_t) _Xrpc_jack_client_async_notify, 6, 0, (routine_arg_descriptor_t)0, (mach_msg_size_t)sizeof(__Reply__rpc_jack_client_async_notify_t)},
}
};



+ 15
- 7
macosx/RPC/JackRPCClientUser.c View File

@@ -1,6 +1,6 @@
/*
* IDENTIFICATION:
* stub generated Thu Jan 3 14:42:41 2008
* stub generated Mon Jan 28 15:04:07 2008
* with a MiG generated Sun Sep 23 15:44:06 PDT 2007 by root@hoosier.apple.com
* OPTIONS:
*/
@@ -265,7 +265,8 @@ mig_external kern_return_t rpc_jack_client_sync_notify
int refnum,
client_name_t client_name,
int notify,
int value,
int value1,
int value2,
int *result
)
{
@@ -279,7 +280,8 @@ mig_external kern_return_t rpc_jack_client_sync_notify
int refnum;
client_name_t client_name;
int notify;
int value;
int value1;
int value2;
} Request;
#ifdef __MigPackStructs
#pragma pack()
@@ -343,7 +345,9 @@ mig_external kern_return_t rpc_jack_client_sync_notify

InP->notify = notify;

InP->value = value;
InP->value1 = value1;

InP->value2 = value2;

InP->Head.msgh_bits =
MACH_MSGH_BITS(19, MACH_MSG_TYPE_MAKE_SEND_ONCE);
@@ -383,7 +387,8 @@ mig_external kern_return_t rpc_jack_client_async_notify
int refnum,
client_name_t client_name,
int notify,
int value
int value1,
int value2
)
{

@@ -396,7 +401,8 @@ mig_external kern_return_t rpc_jack_client_async_notify
int refnum;
client_name_t client_name;
int notify;
int value;
int value1;
int value2;
} Request;
#ifdef __MigPackStructs
#pragma pack()
@@ -431,7 +437,9 @@ mig_external kern_return_t rpc_jack_client_async_notify

InP->notify = notify;

InP->value = value;
InP->value1 = value1;

InP->value2 = value2;

InP->Head.msgh_bits =
MACH_MSGH_BITS(19, 0);


+ 1
- 1
macosx/RPC/JackRPCEngineServer.c View File

@@ -1,6 +1,6 @@
/*
* IDENTIFICATION:
* stub generated Thu Jan 3 14:42:41 2008
* stub generated Mon Jan 28 15:04:07 2008
* with a MiG generated Sun Sep 23 15:44:06 PDT 2007 by root@hoosier.apple.com
* OPTIONS:
*/


+ 1
- 1
macosx/RPC/JackRPCEngineUser.c View File

@@ -1,6 +1,6 @@
/*
* IDENTIFICATION:
* stub generated Thu Jan 3 14:42:41 2008
* stub generated Mon Jan 28 15:04:07 2008
* with a MiG generated Sun Sep 23 15:44:06 PDT 2007 by root@hoosier.apple.com
* OPTIONS:
*/


Loading…
Cancel
Save