Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

sip_date_t* sip_date_create ( su_home_t home,
sip_time_t  date 

Create an header object.

Create a header object with the date date. If

is 0, current time (as returned by sip_now()) is used.
home memory home
date date expressed as seconds since Mon, 01 Jan 1900 00:00:00
A pointer to newly created header object when successful, or NULL upon an error.

Definition at line 1594 of file sip_basic.c.

  sip_header_t *h = sip_header_alloc(home, sip_date_class, 0);
  if (h) {
    if (date == 0)
      date = sip_now();
    h->sh_date->d_time = date;

  return h->sh_date;

Generated by  Doxygen 1.6.0   Back to index