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

📄 s3-device.h

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 H
字号:
/* * Copyright (c) 2005 Zmanda, Inc.  All Rights Reserved. *  * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 2.1 as  * published by the Free Software Foundation. *  * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public * License for more details. *  * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA. *  * Contact information: Zmanda Inc., 505 N Mathlida Ave, Suite 120 * Sunnyvale, CA 94085, USA, or: http://www.zmanda.com */#ifndef __S3_DEVICE_H__#define __S3_DEVICE_H__#include <glib.h>#include <curl/curl.h>#include <glib-object.h>#include "s3.h"/* * Constants *//* * Type checking and casting macros */#define TYPE_S3_DEVICE	(s3_device_get_type())#define S3_DEVICE(obj)	G_TYPE_CHECK_INSTANCE_CAST((obj), s3_device_get_type(), S3Device)#define S3_DEVICE_CONST(obj)	G_TYPE_CHECK_INSTANCE_CAST((obj), s3_device_get_type(), S3Device const)#define S3_DEVICE_CLASS(klass)	G_TYPE_CHECK_CLASS_CAST((klass), s3_device_get_type(), S3DeviceClass)#define IS_S3_DEVICE(obj)	G_TYPE_CHECK_INSTANCE_TYPE((obj), s3_device_get_type ())#define S3_DEVICE_GET_CLASS(obj)	G_TYPE_INSTANCE_GET_CLASS((obj), s3_device_get_type(), S3DeviceClass)/* * Main object structure */typedef struct _S3MetadataFile S3MetadataFile;#ifndef __TYPEDEF_S3_DEVICE__#define __TYPEDEF_S3_DEVICE__typedef struct _S3Device S3Device;#endifstruct _S3Device {    Device __parent__;        /* The "easy" curl handle we use to access Amazon S3 */    S3Handle *s3;    /* S3 access information */    char *bucket;    char *prefix;    /* The S3 access information. */    char *secret_key;    char *access_key;#ifdef WANT_DEVPAY    char *user_token;#endif    /* a cache for unsuccessful reads (where we get the file but the caller     * doesn't have space for it or doesn't want it), where we expect the     * next call will request the same file.     */    char *cached_buf;    char *cached_key;    int cached_size;    /* Produce verbose output? */    gboolean verbose;    /* Set to FALSE once s3_device_open_device is finished. */    gboolean initializing;};/* * Class definition */typedef struct _S3DeviceClass S3DeviceClass;struct _S3DeviceClass {    DeviceClass __parent__;};/* * Public methods */GType	s3_device_get_type	(void);void    s3_device_register    (void);#endif

⌨️ 快捷键说明

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