Commit Graph

120 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 6234f686e0
Add socket_io_*() functions 2016-10-01 04:35:12 +02:00
Přemysl Eric Janouch b07d9df5fc
Simplify resolve_relative_filename_generic() 2016-10-01 04:10:44 +02:00
Přemysl Eric Janouch 3cc975bb2a Fix Travis CI notifications 2016-03-14 20:51:29 +01:00
Přemysl Eric Janouch 365aed456e Add poller_post_fork() for *BSD kqueue 2016-03-13 16:41:16 +01:00
Přemysl Eric Janouch 1051ad555a Update README 2016-03-13 16:40:49 +01:00
Přemysl Eric Janouch 9bff16f5ec Fix config schema application 2016-02-01 21:51:45 +01:00
Přemysl Eric Janouch 052d2ffc9a Allow fsync() to fail on special files 2016-01-26 21:35:45 +01:00
Přemysl Eric Janouch ce8703cea0 Silence warning 2016-01-26 21:35:40 +01:00
Přemysl Eric Janouch f213a76ad4 Add lock_pid_file() 2016-01-17 04:39:19 +01:00
Přemysl Eric Janouch 61ca0c988f Get rid of struct typedefs 2016-01-17 04:33:58 +01:00
Přemysl Eric Janouch 8a9a28231b Cleanup 2016-01-16 06:19:16 +01:00
Přemysl Eric Janouch ff046ea596 Shuffle code 2016-01-16 06:12:19 +01:00
Přemysl Eric Janouch 38d105dede Don't crash when new threads can't be created 2016-01-16 06:12:19 +01:00
Přemysl Eric Janouch a90aeaf0d9 Use a more generic API in write_file{,_safe}() 2016-01-15 22:52:30 +01:00
Přemysl Eric Janouch 60dd23ab8f Make writing files a bit safer
Especially configuration files.
2016-01-13 00:38:54 +01:00
Přemysl Eric Janouch 9e3cb2b6aa Allow arbitrary configuration keys
So that if the application decides to use them, neither writing nor
loading of the configuration doesn't brutally fail.
2016-01-09 05:21:49 +01:00
Přemysl Eric Janouch f90cc1e5a2 Copy user_data in config_item_set_from
So that the validation callback can make use of it.

This is analogous to the change in schema application.
2016-01-09 05:19:43 +01:00
Přemysl Eric Janouch bc7e83137e Fix usage of freeaddrinfo() in connector 2016-01-04 00:58:57 +01:00
Přemysl Eric Janouch 8c06ec3276 Fix the kqueue poller backend 2016-01-04 00:54:27 +01:00
Přemysl Eric Janouch 6a19b51516 Fix build of tests under BSD 2016-01-04 00:47:12 +01:00
Přemysl Eric Janouch 3f20b39b71 Add a test for connector 2016-01-03 23:35:21 +01:00
Přemysl Eric Janouch 385b3bdb47 Fix some leaks in tests 2016-01-03 23:35:21 +01:00
Přemysl Eric Janouch 020a11a5b5 Update copyright years 2016-01-03 23:35:21 +01:00
Přemysl Eric Janouch 9957adc458 Add a test for the async framework 2016-01-03 23:35:21 +01:00
Přemysl Eric Janouch 4dfd88c2c8 Add a CONTAINER_OF macro 2016-01-03 23:35:21 +01:00
Přemysl Eric Janouch b5724a654a Compile tests with pthreads support 2016-01-03 23:35:21 +01:00
Přemysl Eric Janouch 66340e08d7 Rewrite connector to use asynchronous getaddrinfo 2016-01-03 23:35:21 +01:00
Přemysl Eric Janouch 733de7bae2 Add asynchronous getnameinfo() 2016-01-02 04:36:17 +01:00
Přemysl Eric Janouch 13d04e7a35 Add asynchronous getaddrinfo() 2016-01-02 04:36:17 +01:00
Přemysl Eric Janouch 455f2cec82 Add an async job manager to the poller 2016-01-02 04:36:17 +01:00
Přemysl Eric Janouch ee40af0031 Add a framework for asynchronous jobs 2016-01-02 04:36:17 +01:00
Přemysl Eric Janouch 80815519b3 Pass hostname in connector's success callback 2016-01-01 20:14:16 +01:00
Přemysl Eric Janouch f6d74544f8 Stylistic, equivalent change 2015-12-28 04:03:34 +01:00
Přemysl Eric Janouch 2d8a8e0b1b Make config_schema_initialize_item more useful
By also allowing it to set the user_data member.
2015-12-28 04:03:34 +01:00
Přemysl Eric Janouch a4313ee4b9 Constify str_map_iter 2015-12-28 04:03:34 +01:00
Přemysl Eric Janouch 8b2e41ed8f Add read_file() and write_file()
And refactor the simple configuration module a bit.
2015-12-13 22:12:38 +01:00
Přemysl Eric Janouch 91fca5cb05 Import configuration module from uirc3
It seems to be mature enough, and it's just a bit too useful.
2015-12-11 02:52:13 +01:00
Přemysl Eric Janouch 51663d5ee3 Run tests in different processes
So that one broken test doesn't cause the rest to be effectively skipped.
2015-12-10 23:04:37 +01:00
Přemysl Eric Janouch 5d3e911f01 Add a test for utf8_iter 2015-12-10 19:54:45 +01:00
Přemysl Eric Janouch 75d063e363 Fix a nasty bug in utf8_next()
Uppercase ASCII was read incorrectly.
2015-12-10 19:54:45 +01:00
Přemysl Eric Janouch 122ab355a6 Fix running tests on Windows etc. 2015-12-10 19:54:45 +01:00
Přemysl Eric Janouch 0adcaf67c2 Path searching changes
- fixed XDG config file search (didn't include /etc/xdg)
 - added XDG data file search
 - added a generic function to build custom resolvers
 - code reshuffled
2015-11-19 13:27:12 +01:00
Přemysl Eric Janouch 835f0a36db Convert README to AsciiDoc 2015-09-27 01:55:27 +02:00
Přemysl Eric Janouch 6b1273f43c Travis CI: Update IRC server address 2015-08-22 21:14:41 +02:00
Přemysl Eric Janouch bb3d669c3b Fix epoll with no FDs to watch over 2015-08-22 20:59:35 +02:00
Přemysl Eric Janouch ee2457df7c Fix an embarrassing bug in msg_unpacker 2015-08-17 01:53:49 +02:00
Přemysl Eric Janouch 649c351560 Import the connector from uirc3 2015-08-17 00:01:08 +02:00
Přemysl Eric Janouch 792b074e3d Rename configuration to simple_config_*
So that it doesn't conflict with the enhanced one in uirc3.
2015-08-16 23:49:57 +02:00
Přemysl Eric Janouch bb2de1fd48 Make an assertion give more information 2015-08-16 21:56:47 +02:00
Přemysl Eric Janouch 1a305a1c6b Add kqueue support
Successfully tested on OpenBSD with ponymap.
2015-08-06 19:00:13 +02:00