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

📄 device.c

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 C
📖 第 1 页 / 共 5 页
字号:
    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_file_get" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (int) ((arg1)->file);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_block_get) {  {    Device *arg1 = (Device *) 0 ;    guint64 result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_block_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_block_get" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result =  ((arg1)->block);    {      ST(argvi) = sv_2mortal(amglue_newSVu64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_in_file_get) {  {    Device *arg1 = (Device *) 0 ;    gboolean result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_in_file_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_in_file_get" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (gboolean) ((arg1)->in_file);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_device_name_get) {  {    Device *arg1 = (Device *) 0 ;    char *result = 0 ;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_device_name_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_device_name_get" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (char *) ((arg1)->device_name);    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_access_mode_get) {  {    Device *arg1 = (Device *) 0 ;    DeviceAccessMode result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_access_mode_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_access_mode_get" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (DeviceAccessMode) ((arg1)->access_mode);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_is_eof_get) {  {    Device *arg1 = (Device *) 0 ;    gboolean result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_is_eof_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_is_eof_get" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (gboolean) ((arg1)->is_eof);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_volume_label_get) {  {    Device *arg1 = (Device *) 0 ;    char *result = 0 ;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_volume_label_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_volume_label_get" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (char *) ((arg1)->volume_label);    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_volume_time_get) {  {    Device *arg1 = (Device *) 0 ;    char *result = 0 ;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_volume_time_get(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_volume_time_get" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (char *) ((arg1)->volume_time);    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_new_Device) {  {    char *arg1 = (char *) 0 ;    Device *result = 0 ;    int res1 ;    char *buf1 = 0 ;    int alloc1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: new_Device(device_name);");    }    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Device" "', argument " "1"" of type '" "char *""'");    }    arg1 = (char *)(buf1);    result = (Device *)new_Device(arg1);    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Device, SWIG_OWNER | SWIG_SHADOW); argvi++ ;    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);    XSRETURN(argvi);  fail:    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);    SWIG_croak_null();  }}XS(_wrap_delete_Device) {  {    Device *arg1 = (Device *) 0 ;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: delete_Device(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, SWIG_POINTER_DISOWN |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Device" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    delete_Device(arg1);                XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_read_label) {  {    Device *arg1 = (Device *) 0 ;    ReadLabelStatusFlags result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_read_label(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_read_label" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (ReadLabelStatusFlags)Device_read_label(arg1);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_start) {  {    Device *arg1 = (Device *) 0 ;    DeviceAccessMode arg2 ;    char *arg3 = (char *) 0 ;    char *arg4 = (char *) 0 ;    gboolean result;    void *argp1 = 0 ;    int res1 = 0 ;    int res3 ;    char *buf3 = 0 ;    int alloc3 = 0 ;    int res4 ;    char *buf4 = 0 ;    int alloc4 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 4) || (items > 4)) {      SWIG_croak("Usage: Device_start(self,mode,label,timestamp);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_start" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    {      if (sizeof(signed int) == 1) {        arg2 = amglue_SvI8(ST(1));      } else if (sizeof(signed int) == 2) {        arg2 = amglue_SvI16(ST(1));      } else if (sizeof(signed int) == 4) {        arg2 = amglue_SvI32(ST(1));      } else if (sizeof(signed int) == 8) {        arg2 = amglue_SvI64(ST(1));      } else {        g_critical("Unexpected signed int >64 bits?"); /* should be optimized out unless sizeof(signed int) > 8 */      }    }    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);    if (!SWIG_IsOK(res3)) {      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Device_start" "', 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 '" "Device_start" "', argument " "4"" of type '" "char *""'");    }    arg4 = (char *)(buf4);    result = (gboolean)Device_start(arg1,arg2,arg3,arg4);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }            if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);    if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);    XSRETURN(argvi);  fail:            if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);    if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);    SWIG_croak_null();  }}XS(_wrap_Device_finish) {  {    Device *arg1 = (Device *) 0 ;    gboolean result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_finish(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_finish" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = (gboolean)Device_finish(arg1);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_start_file) {  {    Device *arg1 = (Device *) 0 ;    dumpfile_t *arg2 = (dumpfile_t *) 0 ;    gboolean result;    void *argp1 = 0 ;    int res1 = 0 ;    void *argp2 = 0 ;    int res2 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 2) || (items > 2)) {      SWIG_croak("Usage: Device_start_file(self,jobInfo);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_start_file" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_dumpfile_t, 0 |  0 );    if (!SWIG_IsOK(res2)) {      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Device_start_file" "', argument " "2"" of type '" "dumpfile_t const *""'");     }    arg2 = (dumpfile_t *)(argp2);    result = (gboolean)Device_start_file(arg1,(dumpfile_t const *)arg2);    {      ST(argvi) = sv_2mortal(amglue_newSVi64(result));      argvi++;    }            XSRETURN(argvi);  fail:            SWIG_croak_null();  }}XS(_wrap_Device_write_min_size) {  {    Device *arg1 = (Device *) 0 ;    guint result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;        if ((items < 1) || (items > 1)) {      SWIG_croak("Usage: Device_write_min_size(self);");    }    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Device, 0 |  0 );    if (!SWIG_IsOK(res1)) {      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_write_min_size" "', argument " "1"" of type '" "Device *""'");     }    arg1 = (Device *)(argp1);    result = Device_write_min_size(arg1);    {      ST(argvi) = sv_2mortal(amglue_newSVu64(result));      argvi++;    }        XSRETURN(argvi);  fail:        SWIG_croak_null();  }}XS(_wrap_Device_write_max_size) {  {    Device *arg1 = (Device *) 0 ;    guint result;    void *argp1 = 0 ;    int res1 = 0 ;    int argvi = 0;    dXSARGS;

⌨️ 快捷键说明

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