mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:30:44 +00:00
Added stubs for ValidateDocData XP_ReBuffer and XP_Trace to
get Linux build to work.
This commit is contained in:
parent
d5931797aa
commit
f413ee27d8
@ -28,10 +28,11 @@ CPPSRCS = \
|
||||
nsUnixMain.cpp \
|
||||
nsViewerApp.cpp \
|
||||
nsWebCrawler.cpp \
|
||||
nsStubs.cpp \
|
||||
$(NULL)
|
||||
|
||||
INCLUDES+= -I$(PUBLIC)/raptor -I$(PUBLIC)/xpcom -I$(PUBLIC)/dom \
|
||||
-I$(PUBLIC)/netlib -I$(PUBLIC)/js -I$(PUBLIC)/pref
|
||||
-I$(PUBLIC)/netlib -I$(PUBLIC)/js -I$(PUBLIC)/pref -I$(PUBLIC)/network -I$(PUBLIC)/xp
|
||||
|
||||
OBJS = $(CPPSRCS:.cpp=.o)
|
||||
|
||||
|
27
webshell/tests/viewer/nsStubs.cpp
Normal file
27
webshell/tests/viewer/nsStubs.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
|
||||
#include "xp_mcom.h"
|
||||
#include "net.h"
|
||||
#include "xp_linebuf.h"
|
||||
#include "mkbuf.h"
|
||||
|
||||
extern "C" XP_Bool ValidateDocData(MWContext *window_id) { return PR_TRUE; }
|
||||
|
||||
/* dist/public/xp/xp_linebuf.h */
|
||||
int XP_ReBuffer (const char *net_buffer, int32 net_buffer_size,
|
||||
uint32 desired_buffer_size,
|
||||
char **bufferP, uint32 *buffer_sizeP,
|
||||
uint32 *buffer_fpP,
|
||||
int32 (*per_buffer_fn) (char *buffer,
|
||||
uint32 buffer_size,
|
||||
void *closure),
|
||||
void *closure) { return(0); }
|
||||
|
||||
|
||||
|
||||
/* mozilla/include/xp_trace.h */
|
||||
|
||||
extern "C" void XP_Trace( const char *, ... ) { }
|
||||
|
||||
|
@ -114,3 +114,8 @@ int main(int argc, char **argv)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void ValidateDocData() { }
|
||||
void XP_ReBuffer() { }
|
||||
void XP_Trace() { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user