ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/uulib.c
(Generate patch)

Comparing Convert-UUlib/uulib/uulib.c (file contents):
Revision 1.6 by root, Sun Mar 31 20:08:42 2002 UTC vs.
Revision 1.7 by root, Sun Mar 31 21:42:37 2002 UTC

79#include <uudeview.h> 79#include <uudeview.h>
80#include <uuint.h> 80#include <uuint.h>
81#include <fptools.h> 81#include <fptools.h>
82#include <uustring.h> 82#include <uustring.h>
83 83
84char * uulib_id = "$Id: uulib.c,v 1.6 2002/03/31 20:08:42 root Exp $"; 84char * uulib_id = "$Id: uulib.c,v 1.7 2002/03/31 21:42:37 root Exp $";
85 85
86#ifdef SYSTEM_WINDLL 86#ifdef SYSTEM_WINDLL
87BOOL _export WINAPI 87BOOL _export WINAPI
88DllEntryPoint (HINSTANCE hInstance, DWORD seginfo, 88DllEntryPoint (HINSTANCE hInstance, DWORD seginfo,
89 LPVOID lpCmdLine) 89 LPVOID lpCmdLine)
112 112
113/* 113/*
114 * Callback functions and their opaque arguments 114 * Callback functions and their opaque arguments
115 */ 115 */
116 116
117void (*uu_MsgCallback) (void *, char *, int) = NULL; 117void (*uu_MsgCallback) (void *, char *, int) = NULL;
118int (*uu_BusyCallback) (void *, uuprogress *) = NULL; 118int (*uu_BusyCallback) (void *, uuprogress *) = NULL;
119int (*uu_FileCallback) (void *, char *, char *, int) = NULL; 119int (*uu_FileCallback) (void *, char *, char *, int) = NULL;
120char * (*uu_FNameFilter) (void *, char *) = NULL; 120char * (*uu_FNameFilter) (void *, char *) = NULL;
121 121char * (*uu_FileNameCallback)(void *, char *, char *);
122;
122void *uu_MsgCBArg = NULL; 123void *uu_MsgCBArg = NULL;
123void *uu_BusyCBArg = NULL; 124void *uu_BusyCBArg = NULL;
124void *uu_FileCBArg = NULL; 125void *uu_FileCBArg = NULL;
125void *uu_FFCBArg = NULL; 126void *uu_FFCBArg = NULL;
127void *uu_FNCBArg;
126 128
127/* 129/*
128 * Global variables 130 * Global variables
129 */ 131 */
130 132
613 uu_FFCBArg = opaque; 615 uu_FFCBArg = opaque;
614 616
615 return UURET_OK; 617 return UURET_OK;
616} 618}
617 619
620int UUEXPORT
621UUSetFileNameCallback (void *opaque,
622 char * (*func) (void *, char *, char *))
623{
624 uu_FileNameCallback = func;
625 uu_FNCBArg = opaque;
626
627 return UURET_OK;
628}
629
618/* 630/*
619 * Return a pointer to the nth element of the GlobalFileList 631 * Return a pointer to the nth element of the GlobalFileList
620 * zero-based, returns NULL if item is too large. 632 * zero-based, returns NULL if item is too large.
621 */ 633 */
622 634

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines