org.rococoa.cocoa.cfnetwork
Class CFNetServiceClientContext

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by org.rococoa.cocoa.cfnetwork.CFNetServiceClientContext
Direct Known Subclasses:
CFNetServiceClientContext.ByReference, CFNetServiceClientContext.ByValue

public class CFNetServiceClientContext
extends com.ochafik.lang.jnaerator.runtime.Structure

CFNetServiceClientContext

Discussion:
Structure containing the user-defined data and callbacks for
CFNetService and CFNetServiceBrowser objects.
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class CFNetServiceClientContext.ByReference
           
static class CFNetServiceClientContext.ByValue
           
 
Field Summary
 CoreFoundationLibrary.CFAllocatorCopyDescriptionCallBack copyDescription
          The callback used to create a descriptive string representation of
the info pointer (or the data pointed to by the info pointer) for
debugging purposes.
 Pointer info
          An arbitrary pointer to client-defined data, which can be
associated with the service/browser and is passed to the callbacks.
 CoreFoundationLibrary.CFAllocatorReleaseCallBack release
          The callback used to remove a retain previously added for the
service/browser on the info pointer.
 CoreFoundationLibrary.CFAllocatorRetainCallBack retain
          The callback used to add a retain for the service/browser on the
info pointer for the life of the service/browser, and may be used
for temporary references the service/browser needs to take.
 NativeLong version
          The version number of the structure type being passed in as a
parameter to the CFNetService, Browser, or Monitor client
function.
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
CFNetServiceClientContext()
           
CFNetServiceClientContext(NativeLong version, Pointer info, CoreFoundationLibrary.CFAllocatorRetainCallBack retain, CoreFoundationLibrary.CFAllocatorReleaseCallBack release, CoreFoundationLibrary.CFAllocatorCopyDescriptionCallBack copyDescription)
           
 
Method Summary
 CFNetServiceClientContext.ByReference byReference()
           
 CFNetServiceClientContext.ByValue byValue()
           
 CFNetServiceClientContext clone()
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
setupClone
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

version

public NativeLong version
The version number of the structure type being passed in as a
parameter to the CFNetService, Browser, or Monitor client
function. The current version number is 0.


info

public Pointer info
An arbitrary pointer to client-defined data, which can be
associated with the service/browser and is passed to the callbacks.


retain

public CoreFoundationLibrary.CFAllocatorRetainCallBack retain
The callback used to add a retain for the service/browser on the
info pointer for the life of the service/browser, and may be used
for temporary references the service/browser needs to take. This
callback returns the actual info pointer to store in the
service/browser, almost always just the pointer passed as the
parameter.


release

public CoreFoundationLibrary.CFAllocatorReleaseCallBack release
The callback used to remove a retain previously added for the
service/browser on the info pointer.


copyDescription

public CoreFoundationLibrary.CFAllocatorCopyDescriptionCallBack copyDescription
The callback used to create a descriptive string representation of
the info pointer (or the data pointed to by the info pointer) for
debugging purposes. This is used by the CFCopyDescription()
function.

Constructor Detail

CFNetServiceClientContext

public CFNetServiceClientContext()

CFNetServiceClientContext

public CFNetServiceClientContext(NativeLong version,
                                 Pointer info,
                                 CoreFoundationLibrary.CFAllocatorRetainCallBack retain,
                                 CoreFoundationLibrary.CFAllocatorReleaseCallBack release,
                                 CoreFoundationLibrary.CFAllocatorCopyDescriptionCallBack copyDescription)
Parameters:
version - The version number of the structure type being passed in as a
parameter to the CFNetService, Browser, or Monitor client
function. The current version number is 0.
info - An arbitrary pointer to client-defined data, which can be
associated with the service/browser and is passed to the callbacks.
retain - The callback used to add a retain for the service/browser on the
info pointer for the life of the service/browser, and may be used
for temporary references the service/browser needs to take. This
callback returns the actual info pointer to store in the
service/browser, almost always just the pointer passed as the
parameter.
release - The callback used to remove a retain previously added for the
service/browser on the info pointer.
copyDescription - The callback used to create a descriptive string representation of
the info pointer (or the data pointed to by the info pointer) for
debugging purposes. This is used by the CFCopyDescription()
function.
Method Detail

byReference

public CFNetServiceClientContext.ByReference byReference()

byValue

public CFNetServiceClientContext.ByValue byValue()

clone

public CFNetServiceClientContext clone()
Overrides:
clone in class Object