hdf_io_service_if.h

Overview

Related Modules:

Core

Description:

Declares the structures defining driver service objects and event listeners, as well as the functions for obtaining a driver service object, dispatching a driver service call, and registering or unregistering an event listener.

Since:

1.0

Summary

Data Structures

Data Structure Name

Description

HdfDevEventlistener

Defines a driver event listener object.

HdfIoDispatcher

Defines a driver service call dispatcher.

HdfIoService

Defines a driver service object.

Typedefs

Typedef Name

Description

OnEventReceived) (void priv, uint32_t id, struct HdfSBufdata)

typedef int(* 

Called when a driver event occurs.

Functions

Function Name

Description

HdfIoServiceBind (const char serviceName, mode_t permission)

struct HdfIoService  

Obtains a driver service object.

HdfIoServiceRecycle (struct HdfIoServiceservice)

void 

Destroys a specified driver service object to release resources if it is no longer required.

HdfDeviceRegisterEventListener (struct HdfIoService target, struct HdfDevEventlistenerlistener)

int 

Registers a custom HdfDevEventlistener for listening for events reported by a specified driver service object.

HdfDeviceUnregisterEventListener (struct HdfIoService target, struct HdfDevEventlistener *listener)

int 

Unregisters a previously registered HdfDevEventlistener to release resources if it is no longer required.