to verify that the behavior didn't change. main.m: XInternAtom compound_text, and atom_pair. pbproxy.h: Add compound_text and atom_pair to the struct atom_list. x-selection.m: Add an #include of Xutil.h. Refactor the reply struct initialization to be done in a common place. Add send_reply: to simplify the code a bit more. Add send_compound_text: which handles the COMPOUND_TEXT type. Add the beginnings of a send_multiple:. Change handle_image:extension: to handle_image:. The extension: message isn't needed anymore. (cherry picked from commit 1e9460abdf5bafe46215966bbef3e796cb1c33e0)
48 lines
1.1 KiB
Objective-C
48 lines
1.1 KiB
Objective-C
/* 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
|
|
|
|
#define DEBUG 1
|
|
|
|
/* 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);
|
|
|
|
extern Display *x_dpy;
|
|
extern int x_apple_wm_event_base, x_apple_wm_error_base;
|
|
|
|
struct atom_list {
|
|
Atom primary, clipboard, text, utf8_string, string, targets, multiple,
|
|
cstring, image_png, image_jpeg, incr, atom, clipboard_manager,
|
|
compound_text, atom_pair;
|
|
};
|
|
|
|
extern struct atom_list *atoms;
|
|
|
|
/* from x-input.m */
|
|
extern void x_input_register (void);
|
|
extern void x_input_run (void);
|
|
|
|
#if DEBUG == 0
|
|
# define DB(msg, args...) do {} while (0)
|
|
#else
|
|
# define DB(msg, args...) debug_printf("%s:%s:%d " msg, __FILE__, __FUNCTION__, __LINE__, ##args)
|
|
#endif
|
|
|
|
#define TRACE() DB("TRACE\n")
|
|
extern void debug_printf (const char *fmt, ...);
|
|
|
|
#endif /* PBPROXY_H */
|