⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logfile.c

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 C
📖 第 1 页 / 共 5 页
字号:
}XS(_wrap_find_result_t_level_get) {  {    find_result_t *arg1 = (find_result_t *) 0 ;    int result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: find_result_t_level_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_find_result_t, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "find_result_t_level_get" "', argument " "1"" of type '" "find_result_t *""'");     }    arg1 = (find_result_t *)(argp1);    result = (int) ((arg1)->level);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_find_result_t_label_get) {  {    find_result_t *arg1 = (find_result_t *) 0 ;    char *result = 0 ;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: find_result_t_label_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_find_result_t, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "find_result_t_label_get" "', argument " "1"" of type '" "find_result_t *""'");     }    arg1 = (find_result_t *)(argp1);    result = (char *) ((arg1)->label);    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_find_result_t_filenum_get) {  {    find_result_t *arg1 = (find_result_t *) 0 ;    off_t result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: find_result_t_filenum_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_find_result_t, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "find_result_t_filenum_get" "', argument " "1"" of type '" "find_result_t *""'");     }    arg1 = (find_result_t *)(argp1);    result =  ((arg1)->filenum);    {      ST(argvi) = sv_2mortal(amglue_newSVu64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_find_result_t_status_get) {  {    find_result_t *arg1 = (find_result_t *) 0 ;    char *result = 0 ;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: find_result_t_status_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_find_result_t, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "find_result_t_status_get" "', argument " "1"" of type '" "find_result_t *""'");     }    arg1 = (find_result_t *)(argp1);    result = (char *) ((arg1)->status);    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_find_result_t_partnum_get) {  {    find_result_t *arg1 = (find_result_t *) 0 ;    char *result = 0 ;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: find_result_t_partnum_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_find_result_t, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "find_result_t_partnum_get" "', argument " "1"" of type '" "find_result_t *""'");     }    arg1 = (find_result_t *)(argp1);    result = (char *) ((arg1)->partnum);    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_new_find_result_t) {  {    find_result_t *result = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 0) || (items > 0)) {      SWIG_croak("Usage: new_find_result_t();");    }    result = (find_result_t *)(find_result_t *) calloc(1, sizeof(find_result_t));    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_find_result_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ;    XSRETURN(argvi);  fail:    SWIG_croak_null();  }}XS(_wrap_find_log) {  {    char **result = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 0) || (items > 0)) {      SWIG_croak("Usage: find_log();");    }    result = (char **)find_log();    {      char **iter;      int len, i;            /* measure the length of the array and make sure perl has enough room */      for (len=0, iter=result; *iter; iter++) len++;      EXTEND(SP, len);            /* now copy it to the perl stack */      for (i=0, iter=result; *iter; iter++, i++) {        ST(argvi) = sv_2mortal(newSVpv(*iter, 0));        argvi++;      }    }    XSRETURN(argvi);  fail:    SWIG_croak_null();  }}XS(_wrap_search_logfile) {  {    char *arg1 = (char *) 0 ;    char *arg2 = (char *) 0 ;    char *arg3 = (char *) 0 ;    int arg4 ;    find_result_t *result = 0 ;    int res1 ;    char *buf1 = 0 ;    int alloc1 = 0 ;    int res2 ;    char *buf2 = 0 ;    int alloc2 = 0 ;    int res3 ;    char *buf3 = 0 ;    int alloc3 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 4) || (items > 4)) {      SWIG_croak("Usage: search_logfile(label,datestamp,logfile,add_missing_disks);");    }    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "search_logfile" "', argument " "1"" of type '" "char *""'");    }    arg1 = (char *)(buf1);    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);    if (!SWIG_IsOK(res2)) {      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "search_logfile" "', argument " "2"" of type '" "char *""'");    }    arg2 = (char *)(buf2);    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);    if (!SWIG_IsOK(res3)) {      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "search_logfile" "', argument " "3"" of type '" "char *""'");    }    arg3 = (char *)(buf3);    {      if (sizeof(signed int) == 1) {        arg4 = amglue_SvI8(ST(3));      } else if (sizeof(signed int) == 2) {        arg4 = amglue_SvI16(ST(3));      } else if (sizeof(signed int) == 4) {        arg4 = amglue_SvI32(ST(3));      } else if (sizeof(signed int) == 8) {        arg4 = amglue_SvI64(ST(3));      } else {        g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */      }    }    result = (find_result_t *)search_logfile_wrap(arg1,arg2,arg3,arg4);    {      find_result_t *iter;      int len;            /* measure the list and make room on the perl stack */      for (len=0, iter=result; iter; iter=iter->next) len++;      EXTEND(SP, len);            iter = result;      while (iter) {        find_result_t *next;        /* Let SWIG take ownership of the object */        ST(argvi) = SWIG_NewPointerObj(iter, SWIGTYPE_p_find_result_t, SWIG_OWNER | SWIG_SHADOW);        argvi++;                /* null out the 'next' field */        next = iter->next;        iter->next = NULL;        iter = next;      }    }    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);        XSRETURN(argvi);  fail:    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);        SWIG_croak_null();  }}XS(_wrap_dumps_match) {  {    find_result_t *arg1 = (find_result_t *) 0 ;    char *arg2 = (char *) 0 ;    char *arg3 = (char *) 0 ;    char *arg4 = (char *) 0 ;    char *arg5 = (char *) 0 ;    int arg6 ;    find_result_t *result = 0 ;    int res2 ;    char *buf2 = 0 ;    int alloc2 = 0 ;    int res3 ;    char *buf3 = 0 ;    int alloc3 = 0 ;    int res4 ;    char *buf4 = 0 ;    int alloc4 = 0 ;    int res5 ;    char *buf5 = 0 ;    int alloc5 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 6) || (items > 6)) {      SWIG_croak("Usage: dumps_match(output_find,hostname,diskname,datestamp,level,ok);");    }    {      AV *av;      I32 len, i;      find_result_t *head = NULL, *tail = NULL;            if (!SvROK(ST(0)) || SvTYPE(SvRV(ST(0))) != SVt_PVAV) {        SWIG_exception(SWIG_TypeError, "expected an arrayref of find_result_t's");      }            av = (AV *)SvRV(ST(0));      len = av_len(av) + 1;            for (i = 0; i < len; i++) {        SV **val = av_fetch(av, i, 0);        find_result_t *r;                if (!val || SWIG_ConvertPtr(*val, (void **)&r, SWIGTYPE_p_find_result_t, 0) == -1) {          SWIG_exception(SWIG_TypeError, "array member is not a find_result_t");        }                if (!head) {          head = tail = r;        } else {          tail->next = r;          tail = r;        }                tail->next = NULL;      }            /* point to the head of that list */      arg1 = head;    }    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);    if (!SWIG_IsOK(res2)) {      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dumps_match" "', argument " "2"" of type '" "char *""'");    }    arg2 = (char *)(buf2);    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);    if (!SWIG_IsOK(res3)) {      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dumps_match" "', argument " "3"" of type '" "char *""'");    }    arg3 = (char *)(buf3);    res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);    if (!SWIG_IsOK(res4)) {      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "dumps_match" "', argument " "4"" of type '" "char *""'");    }    arg4 = (char *)(buf4);    res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5);    if (!SWIG_IsOK(res5)) {      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "dumps_match" "', argument " "5"" of type '" "char *""'");    }    arg5 = (char *)(buf5);    {      if (sizeof(signed int) == 1) {        arg6 = amglue_SvI8(ST(5));      } else if (sizeof(signed int) == 2) {        arg6 = amglue_SvI16(ST(5));      } else if (sizeof(signed int) == 4) {        arg6 = amglue_SvI32(ST(5));      } else if (sizeof(signed int) == 8) {        arg6 = amglue_SvI64(ST(5));      } else {        g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */      }    }    result = (find_result_t *)dumps_match(arg1,arg2,arg3,arg4,arg5,arg6);    {      find_result_t *iter;      int len;            /* measure the list and make room on the perl stack */      for (len=0, iter=result; iter; iter=iter->next) len++;      EXTEND(SP, len);            iter = result;      while (iter) {        find_result_t *next;        /* Let SWIG take ownership of the object */        ST(argvi) = SWIG_NewPointerObj(iter, SWIGTYPE_p_find_result_t, SWIG_OWNER | SWIG_SHADOW);        argvi++;                /* null out the 'next' field */        next = iter->next;        iter->next = NULL;        iter = next;      }    }    {      find_result_t *iter = arg1, *next;            /* undo all the links we added earlier */      while (iter) {        next = iter->next;        iter->next = NULL;        iter = next;      }    }    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);    if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);    if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);        XSRETURN(argvi);  fail:    {      find_result_t *iter = arg1, *next;            /* undo all the links we added earlier */      while (iter) {        next = iter->next;        iter->next = NULL;        iter = next;      }    }    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);    if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);    if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);        SWIG_croak_null();  }}XS(_wrap_dumps_match_dumpspecs) {  {    find_result_t *arg1 = (find_result_t *) 0 ;    amglue_dumpspec_list *arg2 = (amglue_dumpspec_list *) 0 ;    gboolean arg3 ;    find_result_t *result = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 3) || (items > 3)) {      SWIG_croak("Usage: dumps_match_dumpspecs(output_find,dumpspecs,ok);");    }    {      AV *av;      I32 len, i;      find_result_t *head = NULL, *tail = NULL;            if (!SvROK(ST(0)) || SvTYPE(SvRV(ST(0))) != SVt_PVAV) {        SWIG_exception(SWIG_TypeError, "expected an arrayref of find_result_t's");      }            av = (AV *)SvRV(ST(0));      len = av_len(av) + 1;            for (i = 0; i < len; i++) {        SV **val = av_fetch(av, i, 0);        find_result_t *r;                if (!val || SWIG_ConvertPtr(*val, (void **)&r, SWIGTYPE_p_find_result_t, 0) == -1) {          SWIG_exception(SWIG_TypeError, "array member is not a find_result_t");        }                if (!head) {          head = tail = r;        } else {          tail->next = r;          tail = r;        }                tail->next = NULL;      }            /* point to the head of that list */      arg1 = head;    }    {      AV *av;      int len;      int i;            if (!SvROK(ST(1)) || SvTYPE(SvRV(ST(1))) != SVt_PVAV) {        SWIG_exception_fail(SWIG_TypeErro

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -