return RetVal;
}
-bRC DLLEXPORT
+bRC DLL_IMP_EXP
loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, pInfo **pinfo, pFuncs **pfuncs)
{
bRC retval;
return retval;
}
-bRC DLLEXPORT
+bRC DLL_IMP_EXP
unloadPlugin()
{
return bRC_OK;
}
}
-
+/*
void *
b_malloc(const char *file, int lone, size_t size)
{
{
return NULL;
}
+*/
static bRC newPlugin(bpContext *ctx)
{
#ifndef _EXCHANGE_FD_H
#define _EXCHANGE_FD_H
+#define BUILD_PLUGIN
+
+#if defined(BUILDING_DLL)
+# define DLL_IMP_EXP __declspec(dllexport)
+#elif defined(USING_DLL)
+# define DLL_IMP_EXP __declspec(dllimport)
+#else
+# define DLL_IMP_EXP
+#endif
+
#if defined(HAVE_WIN32)
#if defined(HAVE_MINGW)
#include "mingwconfig.h"
#endif
#define __CONFIG_H
-#if defined(BUILDING_DLL)
-# define DLL_IMP_EXP _declspec(dllexport)
-#elif defined(USING_DLL)
-# define DLL_IMP_EXP _declspec(dllimport)
-#else
-# define DLL_IMP_EXP
-#endif
-
enum {
/* Keep M_ABORT=1 for dlist.h */
M_ABORT = 1, /* MUST abort immediately */
M_VOLMGMT /* Volume management messages */
};
+#define FT_REG 3
+#define FT_DIREND 5
#define _REENTRANT 1
#define _THREAD_SAFE 1
#define _POSIX_PTHREAD_SEMANTICS 1
+#include <stdint.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
#include "win32/compat/compat.h"
#include "bc_types.h"
+
+typedef int64_t boffset_t;
+//#define bstrdup(str) strcpy((char *)bmalloc(strlen((str))+1),(str))
+#define bstrdup(str) strdup(str)
+
#include "fd_plugins.h"
#include "api.h"
#define EXCHANGE_PLUGIN_VERSION 1
-#define DLLEXPORT __declspec(dllexport)
-
#define JOB_TYPE_BACKUP 1
#define JOB_TYPE_RESTORE 2