mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
[FSUTIL]
Define handlers type svn path=/trunk/; revision=75909
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
#include <winioctl.h>
|
||||
|
||||
/* Add handlers here for subcommands */
|
||||
static int QueryMain(int argc, const TCHAR *argv[]);
|
||||
static int SetMain(int argc, const TCHAR *argv[]);
|
||||
static HandlerProc QueryMain;
|
||||
static HandlerProc SetMain;
|
||||
static HandlerItem HandlersList[] =
|
||||
{
|
||||
/* Proc, name, help */
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
#include "fsutil.h"
|
||||
|
||||
/* Add handlers here for subcommands */
|
||||
static int DrivesMain(int argc, const TCHAR *argv[]);
|
||||
static int DriveTypeMain(int argc, const TCHAR *argv[]);
|
||||
static int VolumeInfoMain(int argc, const TCHAR *argv[]);
|
||||
static HandlerProc DrivesMain;
|
||||
static HandlerProc DriveTypeMain;
|
||||
static HandlerProc VolumeInfoMain;
|
||||
static HandlerItem HandlersList[] =
|
||||
{
|
||||
/* Proc, name, help */
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
#include "fsutil.h"
|
||||
|
||||
/* Add handlers here for commands */
|
||||
int DirtyMain(int argc, const TCHAR *argv[]);
|
||||
int FsInfoMain(int argc, const TCHAR *argv[]);
|
||||
int HardLinkMain(int argc, const TCHAR *argv[]);
|
||||
HandlerProc DirtyMain;
|
||||
HandlerProc FsInfoMain;
|
||||
HandlerProc HardLinkMain;
|
||||
static HandlerItem HandlersList[] =
|
||||
{
|
||||
/* Proc, name, help */
|
||||
|
||||
@@ -5,9 +5,12 @@
|
||||
#include <tchar.h>
|
||||
#include <stdio.h>
|
||||
|
||||
typedef int (HandlerProc)(int argc, const TCHAR *argv[]);
|
||||
typedef HandlerProc * pHandlerProc;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int (*Handler)(int argc, const TCHAR *argv[]);
|
||||
pHandlerProc Handler;
|
||||
const TCHAR * Command;
|
||||
const TCHAR * Desc;
|
||||
} HandlerItem;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "fsutil.h"
|
||||
|
||||
/* Add handlers here for subcommands */
|
||||
static int CreateMain(int argc, const TCHAR *argv[]);
|
||||
static HandlerProc CreateMain;
|
||||
static HandlerItem HandlersList[] =
|
||||
{
|
||||
/* Proc, name, help */
|
||||
|
||||
Reference in New Issue
Block a user