2008-09-03 09:16:16 -07:00
|
|
|
/* pbproxy.h
|
|
|
|
|
Copyright (c) 2002 Apple Computer, Inc. All rights reserved. */
|
|
|
|
|
|
|
|
|
|
#ifndef PBPROXY_H
|
|
|
|
|
#define PBPROXY_H 1
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
|
|
#define Cursor X_Cursor
|
|
|
|
|
#undef _SHAPE_H_
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
#include <X11/extensions/shape.h>
|
|
|
|
|
#undef Cursor
|
|
|
|
|
|
2008-10-21 11:19:06 -07:00
|
|
|
#ifndef INTEGRATED_XPBPROXY
|
|
|
|
|
extern BOOL prefs_reload;
|
|
|
|
|
#endif
|
|
|
|
|
|
2008-09-03 09:16:16 -07:00
|
|
|
/* from main.m */
|
|
|
|
|
extern void x_set_is_active (BOOL state);
|
|
|
|
|
extern BOOL x_get_is_active (void);
|
|
|
|
|
extern id x_selection_object (void);
|
|
|
|
|
extern Time x_current_timestamp (void);
|
2008-10-21 11:19:06 -07:00
|
|
|
extern BOOL x_init (void);
|
2008-09-03 09:16:16 -07:00
|
|
|
|
|
|
|
|
extern Display *x_dpy;
|
|
|
|
|
extern int x_apple_wm_event_base, x_apple_wm_error_base;
|
2008-10-15 14:11:18 -07:00
|
|
|
extern int x_xfixes_event_base, x_xfixes_error_base;
|
|
|
|
|
extern BOOL have_xfixes;
|
2008-09-14 09:23:17 -07:00
|
|
|
|
2008-09-03 09:16:16 -07:00
|
|
|
/* from x-input.m */
|
2008-10-21 11:19:06 -07:00
|
|
|
extern BOOL x_input_register (void);
|
2008-09-03 09:16:16 -07:00
|
|
|
extern void x_input_run (void);
|
2008-10-04 18:54:15 -07:00
|
|
|
|
2008-10-23 15:01:03 -07:00
|
|
|
#ifdef DEBUG
|
2008-09-22 17:36:21 -06:00
|
|
|
/* BEWARE: this can cause a string memory leak, according to the leaks program. */
|
2008-09-03 09:16:16 -07:00
|
|
|
# define DB(msg, args...) debug_printf("%s:%s:%d " msg, __FILE__, __FUNCTION__, __LINE__, ##args)
|
2008-10-23 15:01:03 -07:00
|
|
|
#else
|
|
|
|
|
# define DB(msg, args...) do {} while (0)
|
2008-09-03 09:16:16 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define TRACE() DB("TRACE\n")
|
|
|
|
|
extern void debug_printf (const char *fmt, ...);
|
|
|
|
|
|
|
|
|
|
#endif /* PBPROXY_H */
|