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

📄 command.h

📁 fdisk 实现源码,可以查询Linux下系统的分区信息
💻 H
字号:
/*    GNU fdisk - a clone of Linux fdisk.    This file originally from GNU Parted.    Copyright (C) 1999, 2000, 2006 Free Software Foundation, Inc.    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 3 of the License, or    (at your option) any later version.    This program 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 General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA*/#ifndef COMMAND_H_INCLUDED#define COMMAND_H_INCLUDED#include <parted/parted.h>#include "strlist.h"typedef struct {	StrList*	names;	int		(*method) (PedDisk** disk);	StrList*	summary;	StrList*	help;        int             non_interactive:1;	} FdiskCommand;extern FdiskCommand* fdisk_command_create (const StrList* names,				int (*method) (PedDisk** disk),				const StrList* summary,				const StrList* help,                                int non_interactive);extern void fdisk_command_destroy (FdiskCommand* cmd);void fdisk_command_register (FdiskCommand** list, FdiskCommand* cmd);extern FdiskCommand* fdisk_command_get (FdiskCommand** list, char* name);extern StrList* fdisk_command_get_names (FdiskCommand** list);extern void fdisk_command_print_summary (FdiskCommand* cmd);extern void fdisk_command_print_help (FdiskCommand* cmd);extern int fdisk_command_run (FdiskCommand* cmd, PedDisk** disk);#endif /* COMMAND_H_INCLUDED */

⌨️ 快捷键说明

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