mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[FSUTIL]
Define handlers type svn path=/trunk/; revision=75909
This commit is contained in:
parent
0fa3874c25
commit
2bcf27a7d0
5 changed files with 13 additions and 10 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue