00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "JackLibClient.h"
00021 #include "JackMachClientChannel.h"
00022 #include "JackRPCEngine.h"
00023 #include "JackLibGlobals.h"
00024 #include <assert.h>
00025
00026 using namespace Jack;
00027
00028 #define rpc_type kern_return_t // for astyle
00029
00030 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)
00031 {
00032 jack_log("rpc_jack_client_sync_notify ref = %ld name = %s notify = %ld val1 = %ld val2 = %ld", refnum, name, notify, value1, value2);
00033 JackClient* client = gClientTable[client_port];
00034 assert(client);
00035 *result = client->ClientNotify(refnum, name, notify, true, value1, value2);
00036 return KERN_SUCCESS;
00037 }
00038
00039 rpc_type rpc_jack_client_async_notify(mach_port_t client_port, int refnum, client_name_t name, int notify, int value1, int value2)
00040 {
00041 jack_log("rpc_jack_client_async_notify ref = %ld name = %s notify = %ld val1 = %ld val2 = %ld", refnum, name, notify, value1, value2);
00042 JackClient* client = gClientTable[client_port];
00043 assert(client);
00044 client->ClientNotify(refnum, name, notify, false, value1, value2);
00045 return KERN_SUCCESS;
00046 }
00047