Add a new resource record to the server. Returns 0 on success, negative otherwise.
The server object to add this record to |
An entry group object if this new record shall be attached to one, or NULL. If you plan to remove the record sometime later you a required to pass an entry group object here. |
A numeric index of a network interface to attach this record to, or AVAHI_IF_UNSPEC to attach this record to all interfaces |
A protocol family to attach this record to. One of the AVAHI_PROTO_xxx constants. Use AVAHI_PROTO_UNSPEC to make this record available on all protocols (wich means on both IPv4 and IPv6). |
Special flags for this record |
The record to add. This function increases the reference counter of this object. |
Definition at line 316 of file entry.c.
References AVAHI_OK, and avahi_server_errno().