Author: pschweitzer
Date: Wed Sep 20 07:50:48 2017
New Revision: 75909
URL:
http://svn.reactos.org/svn/reactos?rev=75909&view=rev
Log:
[FSUTIL]
Define handlers type
Modified:
trunk/reactos/base/applications/cmdutils/fsutil/dirty.c
trunk/reactos/base/applications/cmdutils/fsutil/fsinfo.c
trunk/reactos/base/applications/cmdutils/fsutil/fsutil.c
trunk/reactos/base/applications/cmdutils/fsutil/fsutil.h
trunk/reactos/base/applications/cmdutils/fsutil/hardlink.c
Modified: trunk/reactos/base/applications/cmdutils/fsutil/dirty.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/fsutil/dirty.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/fsutil/dirty.c [iso-8859-1] Wed Sep 20
07:50:48 2017
@@ -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 */
Modified: trunk/reactos/base/applications/cmdutils/fsutil/fsinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/fsutil/fsinfo.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/fsutil/fsinfo.c [iso-8859-1] Wed Sep 20
07:50:48 2017
@@ -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 */
Modified: trunk/reactos/base/applications/cmdutils/fsutil/fsutil.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/fsutil/fsutil.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/fsutil/fsutil.c [iso-8859-1] Wed Sep 20
07:50:48 2017
@@ -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 */
Modified: trunk/reactos/base/applications/cmdutils/fsutil/fsutil.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/fsutil/fsutil.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/fsutil/fsutil.h [iso-8859-1] Wed Sep 20
07:50:48 2017
@@ -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;
Modified: trunk/reactos/base/applications/cmdutils/fsutil/hardlink.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/fsutil/hardlink.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/fsutil/hardlink.c [iso-8859-1] Wed Sep 20
07:50:48 2017
@@ -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 */