Commit Graph

266 Commits

Author SHA1 Message Date
Michael Jumper
1a9521074c Added prototypes for TODO functions. 2012-03-10 20:56:00 -08:00
Michael Jumper
4595ed51f3 Alphabetized and organized instruction functions, reformatted and fixed comments. 2012-03-10 12:56:59 -08:00
Michael Jumper
878d8a406c Add line cap and join styles. 2012-03-06 12:42:38 -08:00
Michael Jumper
33e028f1f4 Refactored guac_client_alloc_layer(), implement guac_client_free_layer(). 2012-02-27 22:56:38 -08:00
Michael Jumper
ee324aed69 Fixed merge of unstable, refactored rect and clip. 2012-02-27 16:01:02 -08:00
Michael Jumper
f6659c5264 Merge branch 'unstable' into drawing-instructions 2012-02-27 15:56:48 -08:00
Michael Jumper
c55bef0c41 Fix transfer function indices. 2012-02-27 13:14:19 -08:00
Michael Jumper
554d6e1ec1 Implemented transfer instruction, initial transfer function definitions. 2012-02-27 12:28:12 -08:00
Michael Jumper
54cc87093a Removed execute permissions from source. 2012-02-27 10:36:46 -08:00
Michael Jumper
13db6307b6 Changed tabs to spaces. 2012-02-27 10:27:46 -08:00
Michael Jumper
3942cabfd0 Improved comments for raster ops. 2012-02-27 10:26:58 -08:00
Michael Jumper
f77e0dbcc8 Fully enumerate raster operations. 2012-02-27 01:02:04 -08:00
Michael Jumper
3a047ea465 Merge branch 'MBH' into raster 2012-02-26 18:57:28 -08:00
Michael Jumper
e110b9ce92 LICENSE and Doxyfile should be present in source tarball (fixes ticket #84). 2012-02-23 14:44:48 -08:00
Michael Jumper
8348900db9 Prototypes for new instruction functions. 2012-02-23 14:41:33 -08:00
Matt Hortman
7d7a0260bf added constants for raster operations 2012-02-21 11:20:32 -05:00
Michael Jumper
28e2d41e16 Added dispose instruction. 2012-02-20 12:41:23 -08:00
Michael Jumper
124460b5d9 New cursor instruction format (allowing buffering of cursors). 2012-02-15 10:04:31 -08:00
Michael Jumper
a17cd6202b Modified size to be layer-specific, adding layer move instruction. 2012-02-11 19:00:55 -08:00
Michael Jumper
c339b1299b Move private struct members to bottom such that public interface is not distrubed when internal changes are made (avoid being forced to increment version, as done now). 2012-01-12 10:11:45 -08:00
Michael Jumper
da27927a3f Require a minimum number of buffers before old free'd buffers are reused, implement LRU strategy for reuse of buffers (oldest free'd buffer). 2012-01-12 09:57:34 -08:00
Michael Jumper
180216159f Use dlerror() for errors opening client plugin. 2012-01-03 00:03:24 -08:00
Michael Jumper
5c91834998 Clarified flag nature of GUAC_CLIENT_MOUSE_* 2011-12-29 16:40:00 -08:00
Michael Jumper
549c6d4515 Fixed broken rename. 2011-12-24 22:49:27 -08:00
Michael Jumper
27c4e62756 Renamed RUNNING and STOPPING to GUAC_CLIENT_RUNNING and GUAC_CLIENT_STOPPING. Added GUAC_CLIENT_MOUSE_* masks. 2011-12-24 22:48:15 -08:00
Michael Jumper
966cdd7271 Fixed memory leak in guac_client_plugin_close() 2011-12-21 01:44:30 -08:00
Michael Jumper
05b0a09a8a Fixed memory leak in guac_instruction_free() 2011-12-21 01:35:16 -08:00
Michael Jumper
a1b93e0802 Bumped version numbers to 0.5.0. 2011-12-20 20:07:31 -08:00
Michael Jumper
c8d2f232d6 Update changelog 2011-12-11 15:00:19 -08:00
Michael Jumper
1f041e9cee Updated README to point to new Trac. 2011-12-11 14:49:34 -08:00
Michael Jumper
55f00483e2 Should check for cairo/cairo.h, not cairo.h 2011-12-06 12:52:18 -08:00
Michael Jumper
3c5a54e303 Restored guac_client_stop. 2011-12-01 22:57:34 -08:00
Michael Jumper
81bea52e4d Reset position in buffer each reparse (otherwise, stream will be read corrupt as parser is in wrong state). 2011-11-27 23:38:38 -08:00
Michael Jumper
f935075aec Added guac_error_message. Added error messages to all functions. 2011-11-27 15:57:43 -08:00
Michael Jumper
2d02a0f3bd Removed guac_instruction_free_data() 2011-11-26 20:10:52 -08:00
Michael Jumper
29d42d0012 Improved doc layout 2011-11-26 17:28:12 -08:00
Michael Jumper
7fdb236001 Exclude client-handlers.h from generated doc. 2011-11-26 16:11:00 -08:00
Michael Jumper
989f24be2b Do not call free handler for client if init does not complete. 2011-11-26 14:50:03 -08:00
Michael Jumper
61579bd9b7 Fix library name generation, fix instruction parsing. 2011-11-26 00:28:43 -08:00
Michael Jumper
7bca78c7a8 Reject invalid instructions. 2011-11-25 23:48:45 -08:00
Michael Jumper
e99b470f71 Stripping include from file paths. 2011-11-25 17:51:15 -08:00
Michael Jumper
24a2ad6d12 Renamed io to socket (in vars) 2011-11-25 16:34:43 -08:00
Michael Jumper
059ddc0448 Added version number to Doxyfile 2011-11-25 15:15:22 -08:00
Michael Jumper
8cffca4f13 Removed guac_sleep 2011-11-25 13:20:41 -08:00
Michael Jumper
c4c30af6a4 Migrated guac_parse_int to __guac_parse_int, out of socket.h 2011-11-25 13:18:00 -08:00
Michael Jumper
6bd9c00fae Prototypes and docs for plugin functions 2011-11-25 13:13:32 -08:00
Michael Jumper
ae33a4ca48 Converted to new guac_client_plugin API 2011-11-25 13:04:59 -08:00
Michael Jumper
5428aef912 Implemented logging functions. 2011-11-25 12:22:12 -08:00
Michael Jumper
682344f778 Conversion to new naming conventions, partial logging. 2011-11-25 12:17:20 -08:00
Michael Jumper
c6d1916afa Properly check errno if guac_error is GUAC_STATUS_SEE_ERRNO 2011-11-24 18:46:06 -08:00
Michael Jumper
857c2e03c9 Refactor of guac_read_instruction, migrate to new guac_read_instruction 2011-11-24 18:18:03 -08:00
Michael Jumper
5214b1538d Set guac_error in guac_select() 2011-11-23 16:25:25 -08:00
Michael Jumper
97f7249e60 Renamed private members, adding __ (double underscore) prefix. 2011-11-23 16:08:33 -08:00
Michael Jumper
eb11efc67e Removed unused defines. 2011-11-23 15:49:46 -08:00
Michael Jumper
2abc6d19b5 Exclude private symbols from generated docs. 2011-11-23 15:03:40 -08:00
Michael Jumper
087ed54fc2 Removed GUAC_*_TIMEOUT, added usec_timeout parameters to functions which need them, updated docs. 2011-11-23 00:43:30 -08:00
Michael Jumper
a932c2f1a0 Removed out-of-scope threads API. 2011-11-23 00:22:12 -08:00
Michael Jumper
84254cfddf Removed daemon-specific functions 2011-11-22 23:51:43 -08:00
Michael Jumper
dd356d4fe2 Updated documentation of protocol.h 2011-11-21 02:05:05 -08:00
Michael Jumper
1b42db58e9 Added warning for non-threadsafe impl 2011-11-21 01:42:16 -08:00
Michael Jumper
40f773e733 Added documentation for guac_error 2011-11-21 01:37:16 -08:00
Michael Jumper
797c30de75 Added guac_error usage to guacio 2011-11-21 01:32:04 -08:00
Michael Jumper
d7b0c5085e Revert changes to client.h (mockup of guac_status refactor) 2011-11-20 23:14:20 -08:00
Michael Jumper
b50d89d830 Revert "Refactor of prototypes, partial continuation of refactor into client."
This reverts commit a7a4a126c2a670c78bef4bc34d8823f98754bc5c.
2011-11-20 23:09:02 -08:00
Michael Jumper
ca34a2f4a2 Added guac_error (thread-local) 2011-11-20 22:59:34 -08:00
Michael Jumper
8ef7d724bb Refactor of prototypes, partial continuation of refactor into client. 2011-11-19 14:34:08 -08:00
Michael Jumper
4d6218560f Removed inconsistent _t suffix from types. 2011-11-16 15:43:28 -08:00
Michael Jumper
d61335b187 guac_status_t -> guac_status, mockup in client.h 2011-11-16 15:11:48 -08:00
Michael Jumper
af5f610e76 Added error.h and error.c to Makefile.am, implemented string conversion function. 2011-11-16 00:23:38 -08:00
Michael Jumper
cd82b43b5f Added base error.h definitions of status codes and prototype of string conversion function. 2011-11-16 00:11:05 -08:00
Michael Jumper
6cec48c20d Moved badly positioned include. 2011-11-12 16:51:42 -08:00
Michael Jumper
df02126676 Removed guac_client_queue_*() and associated structures (out of scope). 2011-11-03 13:48:05 -07:00
Michael Jumper
a48f43ef6b Removed old guac_layer_* queue functions. 2011-10-25 22:07:30 -07:00
Michael Jumper
185d23fb5e Migrated queue from layer to client, restored GUAC_DEFAULT_LAYER. 2011-10-25 22:01:53 -07:00
Michael Jumper
820a4b1fff Removed accidentally-committed test file 2011-10-23 23:19:49 -07:00
Michael Jumper
44a456aece Implemented naiive update condensing for PNGs in the simplest case. Added queue tail. Now adding to tail of queue. 2011-10-23 23:11:29 -07:00
Michael Jumper
35fedc1eb6 Implemented guac_layer_flush(). 2011-10-23 16:12:31 -07:00
Michael Jumper
c721a94b6e Implemented guac_layer_* queue updates. 2011-10-23 15:53:22 -07:00
Michael Jumper
7da95aa6cf Removed guac_client_free_layer (doesn't make sense), added free() for update queue, added update queue structures. 2011-10-23 15:35:23 -07:00
Michael Jumper
70e150e2e9 Bumped libtool version-info (API changes) 2011-10-23 14:48:26 -07:00
Michael Jumper
665f907a18 Fixed comments, added prototypes for guac_layer_* instruction queueing functions and guac_layer_flush(). 2011-10-23 14:43:26 -07:00
Michael Jumper
076b749225 Implemented support for new instruction format (inbound), simplified instruction parsing. 2011-10-19 01:28:18 -07:00
Michael Jumper
197029c3d8 Fixed rect instruction. 2011-09-11 15:56:34 -07:00
Michael Jumper
7c91f7d66c Working png/cursor instructions. 2011-09-10 00:40:22 -07:00
Michael Jumper
12649bd657 Removed use of escape/unescape pending parsing of new instruction format. 2011-09-10 00:37:16 -07:00
Michael Jumper
e19c636bdb Fix guac_write_base64 to match documented return values. 2011-09-10 00:36:51 -07:00
Michael Jumper
f5b44c97ad Removed unescape/escape functions, switched to new instruction format. 2011-09-09 23:59:07 -07:00
Michael Jumper
621f369130 More improvements to channel mask documentation. 2011-08-30 10:22:39 -07:00
Michael Jumper
e5cc6eb7ca Improved documentation of channel masks and composite operations. 2011-08-29 22:24:45 -07:00
Michael Jumper
eea2e03545 Removed unused file. 2011-08-10 15:13:04 -07:00
Michael Jumper
a829018238 Fixed segfault in free layer/buffer (was using wrong next pointer). 2011-07-25 15:57:48 -07:00
Michael Jumper
3828702b64 Clip instruction. 2011-07-21 15:15:58 -07:00
Michael Jumper
6341346cb7 Using C99, POSIX, and BSD. Added guac_layer and layer/buffer alloc/free. 2011-07-20 12:36:02 -07:00
Michael Jumper
208ff61edd Added missing stdint.h include. 2011-07-20 08:45:23 -07:00
Michael Jumper
f55ba6ff4e Ping with last sync, not new sync. Don't want to update the last update timestamp unnecessarily. 2011-07-14 09:57:14 -07:00
Michael Jumper
b412f1c16d Added missing include file to Makefile.am 2011-06-02 11:22:20 -07:00
Michael Jumper
532ad2137b Added guac_parse_int, which handles 64-bit integers regardless of native arch. 2011-04-29 01:35:17 -07:00
Michael Jumper
8242c37f11 64-bit timestamps and output 2011-04-29 00:45:38 -07:00
Michael Jumper
3239f032ae Fixed thread implementation for win32 2011-04-21 23:48:44 -07:00
Michael Jumper
9d8594fb7e Bumped version numbers. 2011-04-21 15:30:37 -07:00
Michael Jumper
881d49278d Changed enum names (collision with windows-defined macros), fixed thread call. 2011-04-21 15:23:53 -07:00
Michael Jumper
bd8d314c29 Converted to new thread API. 2011-04-21 15:07:36 -07:00
Michael Jumper
c97875d5c8 Cross-platform thread functions. 2011-04-21 15:04:15 -07:00
Michael Jumper
2aa5805048 Fixed guac_write_int - var should have been a long. 2011-04-03 00:43:13 -07:00
Michael Jumper
693fe2a1f5 Support for negative numbers in guac_write_int 2011-04-01 00:53:53 -07:00
Michael Jumper
ab3f09dfb0 Fixed integer overflow in guac_sleep. 2011-04-01 00:30:40 -07:00
Michael Jumper
6579eea3f1 Marked unimplemented masks as such. 2011-03-30 00:31:32 -07:00
Michael Jumper
ba323a7a20 Added composite mode. 2011-03-30 00:03:32 -07:00
Michael Jumper
f95f264747 Using cairo instead of libpng. 2011-03-27 16:32:49 -07:00
Michael Jumper
bb994d5c90 Added -pedantic, fixed warning. 2011-03-24 23:11:46 -07:00
Michael Jumper
1e33435c22 Merge branch 'unstable' of ssh://guacamole.git.sourceforge.net/gitroot/guacamole/libguac into unstable 2011-03-20 23:02:36 -07:00
Michael Jumper
18e01ee74c Added ifdef to force fast (less compressed) PNG rendering only when asked. 2011-03-20 23:02:28 -07:00
Michael Jumper
a2b0729953 Wait for output thread if input thread does not start, fixed typo in error. 2011-03-20 21:38:58 -07:00
Michael Jumper
b16eda0d48 Fixed missing include 2011-03-20 19:38:36 -07:00
Michael Jumper
d6a5d70278 Experimental speed options for PNG encoding (less compression, no filtering) 2011-03-20 19:34:45 -07:00
Michael Jumper
220035746b Add va_list variants of the guac_log_* functions 2011-03-20 00:21:56 -07:00
Michael Jumper
97a63fae3e Fixed log.c and Makefile.am 2011-03-19 17:13:02 -07:00
Michael Jumper
1f4afa6c47 Documentation (doxygen) 2011-03-19 17:06:25 -07:00
Michael Jumper
06dad71273 Using function rather than variadic macro 2011-03-19 17:02:30 -07:00
Michael Jumper
a72df19449 Error handling in guac_start_client. 2011-03-19 16:44:06 -07:00
Michael Jumper
71d59845e9 More error handling, style fix. 2011-03-19 16:39:18 -07:00
Michael Jumper
6300c7c56a Return values and error handling for guac_send_* functions in protocol. 2011-03-19 16:32:35 -07:00
Michael Jumper
5a2a629225 Fixed guac_client_free_handler definition. 2011-03-19 01:00:40 -07:00
Michael Jumper
195ad0e251 More documentation. 2011-03-18 00:55:14 -07:00
Michael Jumper
599c7ff58a Documentation for new client functions and structures. 2011-03-18 00:42:34 -07:00
Michael Jumper
e20e877d45 Moved sleep and timestamp functions, fixed header ifndefs 2011-03-17 21:16:29 -07:00
Michael Jumper
0a3a23f26e Temporary fix for spinning while waiting for sync 2011-03-17 14:04:23 -07:00
Michael Jumper
1b2c27ba96 Removed debug fprintf. 2011-03-17 00:25:55 -07:00
Michael Jumper
a08cd5b8b7 Changed semantics of guac_read_instruction, fixed timeout. 2011-03-17 00:25:35 -07:00
Michael Jumper
3e14b52b1c Improved instruction handling, working I/O threads. 2011-03-16 23:46:02 -07:00
Michael Jumper
3c878e1d59 Added input and output threads 2011-03-16 01:24:17 -07:00
Michael Jumper
a9f702ed27 Initial implementation of timeout. 2011-03-15 23:02:47 -07:00
Michael Jumper
5a46330332 Updated changelog 2011-03-15 22:21:25 -07:00
Michael Jumper
8569803cd5 Init total_written in open. 2011-03-14 11:00:48 -07:00
Michael Jumper
3e90251cb8 Automatic sleep on message handle 2011-03-13 14:52:19 -07:00
Michael Jumper
12d497ca3f Working sync control. 2011-03-11 19:35:44 -08:00
Michael Jumper
e463360aad Sync message support. 2011-03-11 18:57:53 -08:00
Michael Jumper
90993d5d75 Revert "Reinstated ready instruction"
This reverts commit 283c1f5ecbbfa06da5ed1300fc0243c2afcadfeb.
2011-03-06 16:57:13 -08:00
Michael Jumper
47762889cf Reinstated ready instruction 2011-03-05 14:47:02 -08:00
Michael Jumper
cd4205caf6 Added ldconfig instructions 2011-03-02 01:42:30 -08:00
Michael Jumper
1e1ef6f950 Added README for libguac 2011-03-02 01:38:01 -08:00
Michael Jumper
4477ef6669 Added license block to Makefile.am and configure.in 2011-03-02 01:20:56 -08:00
Michael Jumper
e9d52be8d5 Added ChangeLog, removed unused files, switched to foreign over GNU 2011-03-01 01:04:29 -08:00
Michael Jumper
a1f65ce659 Using dashes instead of underscores for client lib prefix 2011-02-28 14:51:18 -08:00
Michael Jumper
122cbeff15 Migrating to new version number system 2011-02-21 22:36:34 -08:00
Michael Jumper
bdaf1db86c Making version number match lib version info 2011-02-21 00:13:44 -08:00
Michael Jumper
5cdfad50e6 Detect and use png_get_io_ptr if provided 2011-02-15 18:07:19 -08:00
Michael Jumper
d32b26ffa8 Changing to MPL/GPL/LGPL tri-license 2011-02-15 18:04:36 -08:00
Michael Jumper
903104af20 Merge branch 'unstable' of ssh://guacamole.git.sourceforge.net/gitroot/guacamole/libguac into unstable 2011-02-11 23:17:05 -08:00
Michael Jumper
3e6b22b071 Layer/buffer support in png and copy instructions 2011-02-11 23:16:46 -08:00