[gimp] Some prototypes added in twain and win-snap
- From: Victor Matheus de Araujo Oliveira <vmaolive src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Some prototypes added in twain and win-snap
- Date: Sun, 18 Dec 2011 21:56:26 +0000 (UTC)
commit c15c3f4828527d9836de0ba168b4bfe00669cc21
Author: Victor Oliveira <victormatheus gmail com>
Date: Sun Dec 18 19:55:31 2011 -0200
Some prototypes added in twain and win-snap
plug-ins/twain/tw_func.h | 9 ++++++++-
plug-ins/win-snap/winsnap.c | 6 ++++++
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/twain/tw_func.h b/plug-ins/twain/tw_func.h
index 3f136f0..da9d377 100644
--- a/plug-ins/twain/tw_func.h
+++ b/plug-ins/twain/tw_func.h
@@ -211,6 +211,7 @@ char *twainError(int);
char *currentTwainError(pTW_SESSION);
int getImage(pTW_SESSION);
int loadTwainLibrary(pTW_SESSION);
+int unloadTwainLibrary(pTW_SESSION twSession);
int openDSM(pTW_SESSION);
int selectDS(pTW_SESSION);
int selectDefaultDS(pTW_SESSION);
@@ -220,8 +221,9 @@ int disableDS(pTW_SESSION);
int closeDS(pTW_SESSION);
int closeDSM(pTW_SESSION);
void cancelPendingTransfers(pTW_SESSION);
+int scanImage (void);
-TW_FIX32 FloatToFix32(float);
+TW_FIX32 FloatToFIX32(float);
float FIX32ToFloat(TW_FIX32);
void processTwainMessage(TW_UINT16 message, pTW_SESSION twSession);
@@ -230,5 +232,10 @@ pTW_SESSION newSession(pTW_IDENTITY);
void registerWindowHandle(pTW_SESSION, TW_HANDLE);
void registerTransferCallbacks(pTW_SESSION, pTXFR_CB_FUNCS, void *);
void setClientData(pTW_SESSION session, void *clientData);
+pTW_SESSION initializeTwain(void);
+
+void LogLastWinError(void);
+BOOL InitApplication(HINSTANCE hInstance);
+BOOL InitInstance(HINSTANCE hInstance, int nCmdShow, pTW_SESSION twSession);
#endif /* _TW_FUNC_H */
diff --git a/plug-ins/win-snap/winsnap.c b/plug-ins/win-snap/winsnap.c
index 7401044..0402e94 100644
--- a/plug-ins/win-snap/winsnap.c
+++ b/plug-ins/win-snap/winsnap.c
@@ -74,6 +74,12 @@
#define APP_NAME PLUG_IN_NAME
#define WM_DOCAPTURE (WM_USER + 100)
+/* Prototypes */
+void setCaptureType(int capType);
+BOOL InitApplication(HINSTANCE hInstance);
+BOOL InitInstance(HINSTANCE hInstance, int nCmdShow);
+int winsnapWinMain(void);
+
/* File variables */
static int captureType;
static char buffer[512];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]