Commit Graph

337 Commits

Author SHA1 Message Date
Michael Jumper
77a752a2ee Fix test. 2012-08-27 15:05:55 -07:00
Michael Jumper
3e96b85b22 Implement pool test. 2012-08-27 15:02:13 -07:00
Michael Jumper
bc5065cda4 Combined tests into single executable. 2012-08-27 14:44:17 -07:00
Michael Jumper
114ac20f25 Layer pool test stub. 2012-08-27 14:41:23 -07:00
Michael Jumper
6d5c9b6dde Refactor creation of client to NOT require plugin. 2012-08-27 14:28:56 -07:00
Michael Jumper
928f3c5457 Bump version numbers. 2012-08-26 11:30:42 -07:00
Michael Jumper
b0240f02ab Define library prefix/suffix with macros, explicitly define and enforce limit on protocol name length, and overall library name length. 2012-08-23 11:50:06 -07:00
Michael Jumper
aaa463ec9f Assert return values. 2012-08-12 23:14:14 -07:00
Michael Jumper
fbca4e8b9a Ensure suite.h is included in source tarball. 2012-08-12 23:12:59 -07:00
Michael Jumper
014a627d13 Update version information. 2012-08-11 13:50:13 -07:00
Michael Jumper
905c6039f4 Update ChangeLog. 2012-08-11 13:47:50 -07:00
Michael Jumper
cf6c232054 Ensure m4/ directory exists, while automatically-added files are not included in commits. 2012-08-11 13:22:27 -07:00
Michael Jumper
f22469ef31 Ignore gcov files. 2012-07-23 20:08:14 -07:00
Michael Jumper
a46e4f40ed Define better set of UTF8 test strings, use instead of dog. 2012-07-23 15:50:58 -07:00
Michael Jumper
f8eb590ea3 Split test_protocol.c into multiple files, one per test. 2012-07-23 15:37:36 -07:00
Michael Jumper
af4cb160cb Add instruction writing test. 2012-07-23 12:38:53 -07:00
Michael Jumper
4170f781a5 More renaming. 2012-07-23 02:25:06 -07:00
Michael Jumper
24c7898ffe Rename test function. 2012-07-23 02:20:12 -07:00
Michael Jumper
e1715cc40c Actual unit test of unicode use. 2012-07-23 01:42:15 -07:00
Michael Jumper
5bd42295ca Use read() instead of recv() such that non-sockets can be used for reads. 2012-07-23 01:41:50 -07:00
Michael Jumper
3cca318f8e Protocol test stub. 2012-07-22 22:08:01 -07:00
Michael Jumper
caf2349a64 Renamed test. 2012-07-22 19:40:11 -07:00
Michael Jumper
2650f1e4a5 Add license comment to unit test source. 2012-07-22 18:00:59 -07:00
Michael Jumper
2f0d2f37e6 Use Check for unit tests, add unit test stub. 2012-07-22 17:57:31 -07:00
Michael Jumper
c21604e2cd Cleaned up Makefile.am's 2012-07-22 15:34:36 -07:00
Michael Jumper
2c66cc4a40 Separate Makefile.am for src 2012-07-22 15:21:10 -07:00
Michael Jumper
a365f0813b Fix element walk. Reset all char counters. 2012-07-22 13:57:13 -07:00
Michael Jumper
a7843cc30f Fix makefile and includes. 2012-07-21 12:15:59 -07:00
Michael Jumper
b76a53fe62 Walk element content to determine character length (NOTE: need to save state between walks to avoid rewalking old characters and turning a linear-time parse into quadratic-time). 2012-07-21 10:00:00 -07:00
Michael Jumper
466fb36fd4 Split unicode functions into own files. 2012-07-19 23:32:49 -07:00
Michael Jumper
6b7fd03503 Measure string output in UTF-8 characters. 2012-07-19 20:03:28 -07:00
Michael Jumper
fb5b4af5ef client-handlers.h should not be installed. 2012-06-20 13:21:05 -07:00
Michael Jumper
79185d52f5 Update version info. 2012-06-03 20:52:11 -07:00
Michael Jumper
7382bacc81 Bump version to 0.6.1 2012-06-03 20:47:45 -07:00
Michael Jumper
675dec46d3 Updated/fixed ChangeLog. 2012-06-03 20:42:04 -07:00
Michael Jumper
8f9eac1d33 Updated contributors. 2012-05-24 23:57:30 -07:00
David PHAM-VAN
6259381d92 Corrected padding in base64 encoding
Signed-off-by: Michael Jumper <zhangmaike@users.sourceforge.net>
2012-05-24 23:55:32 -07:00
Michael Jumper
ae9f20b896 Fix documentation version, add palette to excludes. 2012-05-11 14:35:38 -07:00
Michael Jumper
75d3a3e15c Updated ChangeLog 2012-05-04 19:07:29 -07:00
Michael Jumper
7bc4c199b6 Add error handling to png. 2012-04-19 21:05:07 -07:00
Michael Jumper
844afb6478 Fix segfault in layer/buffer alloc. 2012-04-10 16:12:03 -07:00
Michael Jumper
6a9c959da0 Properly add layers/buffers to available layer/buffer pool. 2012-04-10 11:08:52 -07:00
Michael Jumper
ecec3a1099 Fix size of palette hash table (should be 0x1000, not 0xFFF), don't free palette until AFTER done... 2012-04-02 13:27:28 -07:00
Michael Jumper
71de5606bf Should not install palette.h 2012-04-01 23:27:57 -07:00
Michael Jumper
d2523c062c Restore Cairo PNG support. 2012-04-01 23:16:58 -07:00
Michael Jumper
b4ad24ccd6 Use appropriate BPP and packing. 2012-04-01 23:10:52 -07:00
Michael Jumper
d300688a5b Fix palette find. 2012-04-01 23:01:53 -07:00
Michael Jumper
e8833857b9 Removed debug fprintf. 2012-04-01 22:37:25 -07:00
Michael Jumper
ec652af924 Store palette in libpng format, add PLTE section. 2012-04-01 22:36:55 -07:00
Michael Jumper
969f96f1b7 Use libpng if palette possible, otherwise use Cairo (stub). 2012-04-01 22:28:45 -07:00
Michael Jumper
1489ae902d Store sequential array of colors in palette. 2012-04-01 22:06:34 -07:00
Michael Jumper
314e8c9222 Add palette find function. 2012-04-01 21:57:19 -07:00
Michael Jumper
e22323c4d9 Function rename + palette alloc test. 2012-04-01 21:54:03 -07:00
Michael Jumper
859395022f Move palette functions into own files. 2012-04-01 21:49:15 -07:00
Michael Jumper
4974f5a082 Handle formats, basic palette mapping implementation. 2012-04-01 21:20:08 -07:00
Michael Jumper
3cae4f016f Use libpng for writing of PNGs (currently only works with RGB/RGBA surfaces, and only writes RGB) 2012-04-01 20:19:12 -07:00
Michael Jumper
bd864f3f8f Check for pngstruct.h 2012-04-01 19:25:33 -07:00
Michael Jumper
9118f593b3 Restore checks for libpng. 2012-04-01 19:22:26 -07:00
Michael Jumper
1aa594bd8b __guac_fill_instructionbuf() should report errors. 2012-03-15 11:30:52 -07:00
Michael Jumper
eb73b52e69 Fix output of arc instruction. 2012-03-13 19:12:37 -07:00
Michael Jumper
b71eca8183 Add new negative parameter to arc. 2012-03-13 19:07:24 -07:00
Michael Jumper
a5fdb711c5 Fix documentation of log handlers. 2012-03-13 15:54:55 -07:00
Michael Jumper
7f293df34c Modify guac_client_plugin_get_client() to allow logging to be set up before guac_client_init is called (fixes ticket #85). 2012-03-13 15:45:22 -07:00
Michael Jumper
fa27d7b11e Added layer to set instruction. 2012-03-13 12:06:11 -07:00
Michael Jumper
e3c3eea764 Refactored path into curve, added line, arc, and start instructions. Added close instruction. Added identity instruction. 2012-03-12 17:22:04 -07:00
Michael Jumper
39c0977b9d Corrected spelling of miter. 2012-03-11 23:17:16 -07:00
Michael Jumper
fbe43e917e Refactored rstroke/rfill to lstroke/lfill. 2012-03-11 21:05:34 -07:00
Michael Jumper
eee3fc4fd7 Removed commas at end of last entries in enums. 2012-03-11 19:19:42 -07:00
Michael Jumper
0479d71563 Added all remaining new instructions (and old client-only instructions) 2012-03-11 13:15:45 -07:00
Michael Jumper
55ac0eee0b Implemented around 1/3 of all new instructions. 2012-03-11 12:57:15 -07:00
Michael Jumper
d93108767b Reorganized functions, alphabetized. 2012-03-10 21:34:42 -08:00
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