Changeset 1655


Ignore:
Timestamp:
02/22/10 20:42:13 (11 years ago)
Author:
alno
Message:

WebIf:

  • implement clear_caidtab() in simples for later usage in webif
Location:
branches/monitor-improvement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/globals.h

    r1648 r1655  
    776776extern void clear_sip(struct s_ip **sip);
    777777extern void clear_ptab(struct s_ptab *ptab);
     778void clear_caidtab(struct s_caidtab *ctab);
    778779extern int safe_overwrite_with_bak(char *destfile, char *tmpfile, char *bakfile, int forceBakOverWrite);
    779780extern void fprintf_conf(FILE *f, int varnameWidth, const char *varname, const char *fmtstring, ...);
  • branches/monitor-improvement/oscam-simples.c

    r1587 r1655  
    490490}
    491491
     492/* Clears given caidtab */
     493void clear_caidtab(struct s_caidtab *ctab){
     494    int i;
     495    for (i = 0; i < CS_MAXCAIDTAB; i++) {
     496        ctab->caid[i] = 0;
     497        ctab->mask[i] = 0;
     498        ctab->cmap[i] = 0;
     499    }
     500}
     501
    492502/* Overwrites destfile with tmpfile. If forceBakOverWrite = 0, the bakfile will not be overwritten if it exists, else it will be.*/
    493503int safe_overwrite_with_bak(char *destfile, char *tmpfile, char *bakfile, int forceBakOverWrite){
Note: See TracChangeset for help on using the changeset viewer.