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

ldns_status ldns_rr_new_frm_fp ( ldns_rr **  rr,
FILE *  fp,
uint16_t *  default_ttl,
ldns_rdf **  origin,
ldns_rdf **  prev 
)

creates a new rr from a file containing a string.

Parameters:
[out] rr the new rr
[in] fp the file pointer to use
[in] default_ttl pointer to a default ttl for the rr. If NULL DEF_TTL will be used the pointer will be updated if the file contains a $TTL directive
[in] origin when the owner is relative add this the pointer will be updated if the file contains a $ORIGIN directive The caller must ldns_rdf_deep_free it.
[in] prev when the owner is whitespaces use this as the * ownername the pointer will be updated after the call The caller must ldns_rdf_deep_free it.
Returns:
a ldns_status with an error or LDNS_STATUS_OK

Definition at line 472 of file rr.c.

References ldns_rr_new_frm_fp(), and ldns_rr_new_frm_fp_l().

Referenced by ldns_rr_new_frm_fp().

{
      return ldns_rr_new_frm_fp_l(newrr, fp, ttl, origin, prev, NULL);
}


Generated by  Doxygen 1.6.0   Back to index