Logo Search packages:      
Sourcecode: avahi version File versions  Download package

AvahiRecord* avahi_record_new_full ( const char *  name,
uint16_t  clazz,
uint16_t  type,
uint32_t  ttl 
)

Create a new record object. Record data should be filled in right after creation. The reference counter is set to 1.

Definition at line 116 of file rr.c.

                                                                                                  {
    AvahiRecord *r;
    AvahiKey *k;

    assert(name);

    if (!(k = avahi_key_new(name, class, type))) {
        avahi_log_error("avahi_key_new() failed.");
        return NULL;
    }

    r = avahi_record_new(k, ttl);
    avahi_key_unref(k);

    if (!r) {
        avahi_log_error("avahi_record_new() failed.");
        return NULL;
    }

    return r;
}


Generated by  Doxygen 1.6.0   Back to index