#include <OSServices/OSServices.h>

//work
/*OTBufferDataSize

Obtains the size of the no-copy receive buffer. (Deprecated in Mac OS X v10.4.)

OTByteCount OTBufferDataSize (
   OTBuffer * buffer
);
Parameters
buffer
Return Value

See the description of the OTByteCount data type.
Availability
Available in CarbonLib 1.0 and later when OpenTransport 1.0 or later is present.
Available in Mac OS X 10.0 and later.
Deprecated in Mac OS X v10.4.
Declared In
OpenTransportProtocol.h*/
OTByteCount OTBufferDataSize (
   OTBuffer * buffer
){};

/*OTReleaseBuffer

Returns the no-copy receive buffer to the system. (Deprecated in Mac OS X v10.4.)

void OTReleaseBuffer (
   OTBuffer * buffer
);
Parameters
buffer
Availability
Available in CarbonLib 1.0 and later when OpenTransport 1.0 or later is present.
Available in Mac OS X 10.0 and later.
Deprecated in Mac OS X v10.4.
Declared In
OpenTransportProtocol.h*/
void OTReleaseBuffer (
   OTBuffer * buffer
){};

/*OTReadBuffer

Copies data out of a no-copy receive buffer. (Deprecated in Mac OS X v10.4.)

Boolean OTReadBuffer (
   OTBufferInfo * buffer,
   void * dest,
   OTByteCount * len
);
Parameters
buffer
dest
len
Availability
Available in CarbonLib 1.0 and later when OpenTransport 1.0 or later is present.
Available in Mac OS X 10.0 and later.
Deprecated in Mac OS X v10.4.
Declared In
OpenTransportProtocol.h*/
Boolean OTReadBuffer (
   OTBufferInfo * buffer,
   void * dest,
   OTByteCount * len
){};

/*OTDestroyTimerTask

Disposes of a timer task. (Deprecated in Mac OS X v10.4.)

void OTDestroyTimerTask (
   OTTimerTask timerTask
);
Parameters
timerTask
Availability
Available in CarbonLib 1.0 and later.
Available in Mac OS X 10.0 and later.
Deprecated in Mac OS X v10.4.
Declared In
OpenTransportProtocol.h*/

void OTDestroyTimerTask (
   OTTimerTask timerTask
){};

/*OTCancelTimerTask

Cancels a task that was already scheduled for execution. (Deprecated in Mac OS X v10.4.)

Boolean OTCancelTimerTask (
   OTTimerTask timerTask
);
Parameters
timerTask
Availability
Available in CarbonLib 1.0 and later.
Available in Mac OS X 10.0 and later.
Deprecated in Mac OS X v10.4.
Declared In
OpenTransportProtocol.h*/
Boolean OTCancelTimerTask (
   OTTimerTask timerTask
){};

/*OTScheduleTimerTask

Schedules a timer task to be executed at the specified time. (Deprecated in Mac OS X v10.4.)

Boolean OTScheduleTimerTask (
   OTTimerTask timerTask,
   OTTimeout milliSeconds
);
Parameters
timerTask
milliSeconds
Availability
Available in CarbonLib 1.0 and later.
Available in Mac OS X 10.0 and later.
Deprecated in Mac OS X v10.4.
Declared In
OpenTransportProtocol.h*/

Boolean OTScheduleTimerTask (
   OTTimerTask timerTask,
   OTTimeout milliSeconds
){};

/*OTCreateTimerTask
Creates a task to be scheduled.

C INTERFACE
pascal long OTCreateTimerTask(OTProcessProcPtr proc, void* arg);
C++ INTERFACES 
None. C++ applications use the C interface to this function.

PARAMETERS
proc 
A procedure pointer referencing the task to be created. 
arg 
A pointer to a user-defined value to be passed to the task when it executes. 
function result 
A 32-bit value identifying the task that was created. You must pass this value for the timerTask parameter of the OTScheduleTimerTask function. 
DISCUSSION
The OTCreateTimerTask function creates a task that you can schedule later with the function OTScheduleTimerTask.

SEE ALSO
The OTScheduleTimerTask function.

The OTCancelTimerTask function.

The OTDestroyTimerTask function.*/
pascal long OTCreateTimerTask(OTProcessProcPtr proc, void* arg){};

