Pending

Functions
Pending
Eldbus

## Functions
void | eldbus_pending_data_set (Eldbus_Pending *pending, const char *key, const void *data)
| Set data to a Eldbus_Pending object. More...
void * | eldbus_pending_data_get (const Eldbus_Pending *pending, const char *key)
| Get the data set to a Eldbus_Pending object. More...
void * | eldbus_pending_data_del (Eldbus_Pending *pending, const char *key)
| Delete the data set to a Eldbus_Pending object. More...
void | eldbus_pending_cancel (Eldbus_Pending *pending)
| Cancel the pending message. More...
const char * | eldbus_pending_destination_get (const Eldbus_Pending *pending)
| Get the destination of the pending message. More...
const char * | eldbus_pending_path_get (const Eldbus_Pending *pending)
| Get the path of the pending message. More...
const char * | eldbus_pending_interface_get (const Eldbus_Pending *pending)
| Get the interface of the pending message. More...
const char * | eldbus_pending_method_get (const Eldbus_Pending *pending)
| Get the method of the pending message. More...
void | eldbus_pending_free_cb_add (Eldbus_Pending *pending, Eldbus_Free_Cb cb, const void *data)
| Add a callback function to be called when pending will be freed. More...
void | eldbus_pending_free_cb_del (Eldbus_Pending *pending, Eldbus_Free_Cb cb, const void *data)
| Remove callback registered in eldbus_pending_free_cb_add(). More...

## Detailed Description

## Function Documentation

## ◆ eldbus_pending_data_set()

void eldbus_pending_data_set | ( | Eldbus_Pending * | pending,
|  | const char * | key,
|  | const void * | data
| ) |  |

Set data to a Eldbus_Pending object.

Parameters

  pending | The Eldbus_Pending object on which the data is set.
  key | A string corresponding to the key associated with the data.
  data | The data to set to the Eldbus_Pending object.

## ◆ eldbus_pending_data_get()

void* eldbus_pending_data_get | ( | const Eldbus_Pending * | pending,
|  | const char * | key
| ) |  |

Get the data set to a Eldbus_Pending object.

Parameters

  pending | The Eldbus_Pending object on which the data is set.
  key | A string corresponding to the key associated with the data.

Returns
  The data set to the Eldbus_Pending object.

## ◆ eldbus_pending_data_del()

void* eldbus_pending_data_del | ( | Eldbus_Pending * | pending,
|  | const char * | key
| ) |  |

Delete the data set to a Eldbus_Pending object.

Parameters

  pending | The Eldbus_Pending object on which the data is set.
  key | A string corresponding to the key associated with the data.

## ◆ eldbus_pending_cancel()

void eldbus_pending_cancel | ( | Eldbus_Pending * | pending | ) |

Cancel the pending message.

Parameters

  pending | The Eldbus_Pending object corresponding to the pending message.

## ◆ eldbus_pending_destination_get()

const char* eldbus_pending_destination_get | ( | const Eldbus_Pending * | pending | ) |

Get the destination of the pending message.

Parameters

  pending | The Eldbus_Pending object.

Returns
  A string corresponding to the destination of the message.

## ◆ eldbus_pending_path_get()

const char* eldbus_pending_path_get | ( | const Eldbus_Pending * | pending | ) |

Get the path of the pending message.

Parameters

  pending | The Eldbus_Pending object.

Returns
  A string corresponding to the path of the message.

## ◆ eldbus_pending_interface_get()

const char* eldbus_pending_interface_get | ( | const Eldbus_Pending * | pending | ) |

Get the interface of the pending message.

Parameters

  pending | The Eldbus_Pending object.

Returns
  A string corresponding to the interface of the message.

## ◆ eldbus_pending_method_get()

const char* eldbus_pending_method_get | ( | const Eldbus_Pending * | pending | ) |

Get the method of the pending message.

Parameters

  pending | The Eldbus_Pending object.

Returns
  A string corresponding to the method of the message.

## ◆ eldbus_pending_free_cb_add()

void eldbus_pending_free_cb_add | ( | Eldbus_Pending * | pending,
|  | Eldbus_Free_Cb | cb,
|  | const void * | data
| ) |  |

Add a callback function to be called when pending will be freed.

Parameters

  pending | The Eldbus_Pending object on which the callback is registered.
  cb | The callback to register.
  data | The data to pass to the callback.

## ◆ eldbus_pending_free_cb_del()

void eldbus_pending_free_cb_del | ( | Eldbus_Pending * | pending,
|  | Eldbus_Free_Cb | cb,
|  | const void * | data
| ) |  |

Remove callback registered in eldbus_pending_free_cb_add().

Parameters

  pending | The Eldbus_Pending object on which the callback was registered.
  cb | The callback that was registered.
  data | The data passed to the callback.