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

📄 null-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 *//* The NULL device accepts data and sends it to the bit bucket. Like   /dev/null, you cannot read from the NULL device -- only   write. While useful for testing, the NULL device is incredibly   dangerous in practice (because it eats your data). So it will   generate warnings whenever you use it. */#include <glib.h>#include <glib-object.h>#ifndef __NULL_DEVICE_H__#define __NULL_DEVICE_H__/* This header file is very boring, because the class just overrides   existing methods. *//* * Type checking and casting macros */#define TYPE_NULL_DEVICE	(null_device_get_type())#define NULL_DEVICE(obj)	G_TYPE_CHECK_INSTANCE_CAST((obj), null_device_get_type(), NullDevice)#define NULL_DEVICE_CONST(obj)	G_TYPE_CHECK_INSTANCE_CAST((obj), null_device_get_type(), NullDevice const)#define NULL_DEVICE_CLASS(klass)	G_TYPE_CHECK_CLASS_CAST((klass), null_device_get_type(), NullDeviceClass)#define IS_NULL_DEVICE(obj)	G_TYPE_CHECK_INSTANCE_TYPE((obj), null_device_get_type ())#define NULL_DEVICE_GET_CLASS(obj)	G_TYPE_INSTANCE_GET_CLASS((obj), null_device_get_type(), NullDeviceClass)/* * Main object structure */#ifndef __TYPEDEF_NULL_DEVICE__#define __TYPEDEF_NULL_DEVICE__typedef struct _NullDevice NullDevice;#endifstruct _NullDevice {	Device __parent__;};/* * Class definition */typedef struct _NullDeviceClass NullDeviceClass;struct _NullDeviceClass {    DeviceClass __parent__;    gboolean in_file;};/* * Public methods */GType	null_device_get_type	(void);void    null_device_register    (void);#endif

⌨️ 快捷键说明

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