Miscellaneous functions. More...
Functions | |
| int | adbus_connect_address (adbus_BusType type, char *buf, size_t sz) |
| Gets the address to connect to for the given bus type. | |
| int | adbus_bind_address (adbus_BusType type, char *buf, size_t sz) |
| Gets the address to bind to for the given bus type. | |
Miscellaneous functions.
| int adbus_bind_address | ( | adbus_BusType | type, | |
| char * | buf, | |||
| size_t | sz | |||
| ) |
Gets the address to bind to for the given bus type.
The address is copied into the supplied buffer. It is truncated if the buffer is too small. In general having a buffer size of 256 is sufficient for any reasonable address.
The lookup rules for ADBUS_DEFAULT_BUS are:
For ADBUS_SESSION_BUS:
For ADBUS_SYSTEM_BUS:
| int adbus_connect_address | ( | adbus_BusType | type, | |
| char * | buf, | |||
| size_t | sz | |||
| ) |
Gets the address to connect to for the given bus type.
The address is copied into the supplied buffer. It is truncated if the buffer is too small. In general having a buffer size of 256 is sufficient for any reasonable address.
The lookup rules for ADBUS_DEFAULT_BUS are:
For ADBUS_SESSION_BUS:
For ADBUS_SYSTEM_BUS:
1.6.1