// NewProviderNode initializes the provider node.
NewProviderNode initializes the provider node.
// NewProviderNode initializes the provider node .
func NewProviderNode() *ProviderNode {
	channels := ProviderNodeChannels{
		OnCreate:   make(chan ProviderNodeEventData, providerNodeChannelSize),
		OnRemove:   make(chan ProviderNodeEvent, providerNodeChannelSize),
		OnBrowse:   make(chan ProviderNodeEvent, providerNodeChannelSize),
		OnRead:     make(chan ProviderNodeEventData, providerNodeChannelSize),
		OnWrite:    make(chan ProviderNodeEventData, providerNodeChannelSize),
		OnMetadata: make(chan ProviderNodeEvent, providerNodeChannelSize),
		Done:       make(chan bool),
	}
	userdata := getNodeUserdata(channels)
	ptr := C.DLR_providerNodeCreate(getNodeCallbacksC(userdata))
	return &ProviderNode{
		this:     ptr,
		userdata: userdata,
		channels: channels,
	}
}
func NewProviderNode ( ) * ProviderNode { channels := ProviderNodeChannels { OnCreate : make ( chan ProviderNodeEventData , providerNodeChannelSize ) , OnRemove : make ( chan ProviderNodeEvent , providerNodeChannelSize ) , OnBrowse : make ( chan ProviderNodeEvent , providerNodeChannelSize ) , OnRead : make ( chan ProviderNodeEventData , providerNodeChannelSize ) , OnWrite : make ( chan ProviderNodeEventData , providerNodeChannelSize ) , OnMetadata : make ( chan ProviderNodeEvent , providerNodeChannelSize ) , Done : make ( chan bool ) , } userdata := getNodeUserdata ( channels ) ptr := C . DLR_providerNodeCreate ( getNodeCallbacksC ( userdata ) ) return & ProviderNode { this : ptr , userdata : userdata , channels : channels , } }
NewProviderNode initializes the provider node.
NewProviderNode initializes the provider node .