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

void rpl_wa_init ( rpl_web_asset wa  ) 

Initialises the rpl_web_asset structure pointed to by wa.

Parameters:
wa 

Definition at line 73 of file webasset.c.

References _rpl_web_asset::contrib, _rpl_web_asset::dts, _rpl_web_asset::filename, _rpl_web_asset::key, _rpl_web_asset::mime_type, _rpl_web_asset::rel_dir, rpl_me_malloc(), _rpl_web_asset::tidy_stat_desc, and _rpl_web_asset::tmpl_stat_desc.

Referenced by rpl_mod_index_process(), rpl_mod_init_process(), and rpl_reg_init().

{
      struct passwd *uidpwent;

    wa->dts = time(NULL);
      wa->key = RPL_STR_NUL;
      /* set the contributer to the name of the process owner */
      uidpwent = getpwuid(getuid());
      wa->contrib = rpl_me_malloc(strlen(uidpwent->pw_name) + 1);
      sprintf(wa->contrib, uidpwent->pw_name);
    wa->filename = RPL_STR_NUL;
    wa->rel_dir = RPL_STR_NUL;
    wa->mime_type = RPL_STR_NUL;
    wa->tidy_stat_desc = RPL_STR_NUL;
    wa->tmpl_stat_desc = RPL_STR_NUL;
}


Generated by  Doxygen 1.6.0   Back to index