1 2007-02-02 Mikael Hallendal <micke@imendio.com>
9 2007-01-05 Mikael Hallendal <micke@imendio.com>
11 * python/*: Removed. Yay SVN!
13 2007-01-05 Mikael Hallendal <micke@imendio.com>
15 * mono/*: Removed, unfinished, outdated and doesn't build.
17 2006-12-23 Mikael Hallendal <micke@imendio.com>
25 2006-12-06 Mikael Hallendal <micke@imendio.com>
27 * loudmouth/lm-ssl-gnutls.c: (_lm_ssl_begin):
28 - Fixed a warning on 64 bit alpha.
31 2006-11-17 Mikael Hallendal <micke@imendio.com>
33 * loudmouth/lm-connection.h:
34 - Removed a typo slash, reported by Dafydd Harries.
35 * loudmouth/lm-parser.c: (parser_error_cb), (lm_parser_parse):
36 - Don't free the parser in the parser callback.
37 - Patch from Sjoerd Simons.
39 2006-11-14 Mikael Hallendal <micke@imendio.com>
41 * loudmouth/lm-connection.c:
42 (lm_connection_authenticate_and_block):
43 - Fixed a memory leak reported by Ganapati Kundapur.
46 2006-10-22 Richard Hult <richard@imendio.com>
48 * loudmouth/lm-connection.c (connection_do_close)
49 (lm_connection_send_with_reply_and_block):
50 - Check that we have the source before removing it and set the pointer
54 2006-10-17 Mikael Hallendal <micke@imendio.com>
56 * loudmouth/lm-message-node.c: (lm_message_node_to_string):
57 - Small fixup of the previous LM-48 fix.
59 2006-10-16 Mikael Hallendal <micke@imendio.com>
61 * loudmouth/lm-connection.c: (_lm_connection_succeeded),
62 (_lm_connection_failed_with_error), (connection_do_open),
63 (connection_do_close), (lm_connection_new):
64 - Keep a reference to LmConnectData and remove the source if connect
65 is cancelled before the connection is open.
67 * loudmouth/lm-message-node.c: (lm_message_node_to_string):
68 - Use GString to build message node XML.
69 - Escape the attribute values unless raw-mode is specified.
71 - Patch from Dafydd Harries.
73 2006-09-21 Mikael Hallendal <micke@imendio.com>
79 2006-09-21 Mikael Hallendal <micke@imendio.com>
81 * loudmouth/lm-connection.c: (_lm_connection_succeeded),
82 (_lm_connection_failed_with_error), (connection_buffered_write_cb),
83 (connection_do_close):
84 - Check that we find a resource before trying to destroy it.
85 - Fixes warning described in LM-50.
88 2006-09-21 Richard Hult <richard@imendio.com>
90 * loudmouth/lm-connection.c (connection_connect_cb):
91 * loudmouth/lm-proxy.c (_lm_proxy_connect_cb):
92 - Initialize len, fixes some random bugs on connection errors, where
93 the error code returned is random numbers.
96 2006-09-13 Mikael Hallendal <micke@imendio.com>
98 * loudmouth/lm-connection.c: (connection_free):
99 - Unref the proxy if set, plugs a leak.
102 2006-09-11 Mikael Hallendal <micke@imendio.com>
104 * loudmouth/lm-utils.c: (_lm_utils_generate_id):
105 - Generate more unique IDs, fixes LM-56.
107 2006-09-11 Mikael Hallendal <micke@imendio.com>
111 2006-09-11 Mikael Hallendal <micke@imendio.com>
117 2006-09-10 Mikael Hallendal <micke@imendio.com>
120 * loudmouth/Makefile.am:
122 * tests/parser-tests/*:
123 * tests/test-parser.c:
124 - Some more work on unit tests for the parser.
126 2006-09-08 Mikael Hallendal <micke@imendio.com>
129 * tests/test-parser.c:
130 - Added, base for parser unit tests.
132 2006-09-06 Mikael Hallendal <micke@imendio.com>
134 * loudmouth/lm-ssl-openssl.c: (ssl_verify_certificate):
137 2006-09-01 Mikael Hallendal <micke@imendio.com>
139 * loudmouth/lm-connection.c: (lm_connection_new_with_context),
140 (lm_connection_send_raw):
141 * loudmouth/lm-message-handler.c: (lm_message_handler_new),
142 (lm_message_handler_is_valid):
143 * loudmouth/lm-message-node.c: (lm_message_node_add_child),
144 (lm_message_node_set_attribute), (lm_message_node_get_attribute),
145 (lm_message_node_get_child), (lm_message_node_find_child):
146 * loudmouth/lm-parser.c:
147 * loudmouth/lm-utils.c: (_lm_utils_hostname_to_punycode),
148 (lm_utils_get_localtime):
149 - Patch from Martyn to add argument checks all around.
151 2006-08-23 Martyn Russell <martyn@imendio.com>
153 * examples/lm-send-async.c:
154 * examples/lm-send-sync.c:
155 * examples/test-lm.c: Make use of lm_connection_set_jid() and make
156 sure we only use the part before the '@' for the username when
157 authenticating, this means that these test clients will now work
160 2006-08-22 Mikael Hallendal <micke@imendio.com>
162 * loudmouth/lm-message-node.c: (lm_message_node_to_string):
163 - Add a check that node isn't NULL.
165 2006-08-04 Mikael Hallendal <micke@imendio.com>
168 - Fix a auto* warning.
171 2006-08-03 Richard Hult <richard@imendio.com>
173 * loudmouth/lm-sha.c:
174 - Make the sha functions static so they are not exposed to
175 apps/libraries using loudmout.
178 2006-08-01 Mikael Hallendal <micke@imendio.com>
180 * loudmouth/lm-ssl-gnutls.c: (_lm_ssl_read):
181 - EOF on 0 bytes read.
184 2006-06-27 Mikael Hallendal <micke@imendio.com>
191 - Added news about 1.1.2
193 2006-06-25 Mikael Hallendal <micke@imendio.com>
195 * loudmouth/lm-connection.c: (lm_connection_close):
196 - Patch from Martyn Russel
197 - Make sure that disconnect is signalled if the connection is closed
198 during opening phase.
201 2006-06-16 Mikael Hallendal <micke@imendio.com>
204 * loudmouth-1.0.pc.in:
205 * loudmouth/Makefile.am:
206 - Add checks for libidn.
207 * loudmouth/lm-connection.c: (lm_connection_new),
208 (lm_connection_set_server):
209 * loudmouth/lm-proxy.c: (lm_proxy_set_server):
210 - Use the new function _lm_utils_hostname_to_punycode.
211 * loudmouth/lm-internals.h:
212 * loudmouth/lm-utils.c: (_lm_utils_hostname_to_punycode):
213 - Added function to support internationalised host names.
214 - Patch from Frederic Peters.
217 2006-06-06 Mikael Hallendal <micke@imendio.com>
219 * loudmouth/lm-connection.c: (connection_free):
220 - Call lm_parser_free to actually free it.
221 * loudmouth/lm-parser.c: (lm_parser_free):
222 - Free up memory used by the parser.
225 2006-05-27 Mikael Hallendal <micke@imendio.com>
227 * loudmouth/lm-ssl-gnutls.c: (ssl_verify_certificate):
228 - Fixed an error with an uninitialized value.
231 2006-05-26 Mikael Hallendal <micke@imendio.com>
233 * loudmouth/lm-connection.c: (connection_free),
234 (connection_handle_message), (_lm_connection_failed_with_error),
235 (connection_auth_reply), (connection_stream_received),
236 (lm_connection_set_disconnect_function):
237 - Patch from Owen Taylor fixes two reentrancy problems.
240 2006-04-19 Mikael Hallendal <micke@imendio.com>
244 * Makefile.am: Added DISTCHECK_CONFIGURE_FLAGS
245 * configure.ac: Removed old gtk-doc cruft, only use GTK_DOC_CHECK now.
246 * loudmouth/Makefile.am: Added EXTRA_DIST.
248 2006-04-19 Mikael Hallendal <micke@imendio.com>
251 - Move back to use the GTK_DOC_CHECK() macro.
252 * docs/reference/Makefile.am:
253 - Updated to newer format from gtk-doc (old one failed distcheck with
256 2006-04-19 Mikael Hallendal <micke@imendio.com>
258 * Landing a patch by Martyn Russell for Win32.
260 * configure.ac: Updated for Win32 work
261 * examples/*: Updated and improved.
262 * loudmouth/Makefile.am:
263 * loudmouth/lm-connection.c:
264 - Abstracted out the low level socket handling to lm-sock.[ch] to make
265 this file clean from OS dependant socket code.
266 * loudmouth/lm-internals.h:
267 * loudmouth/lm-parser.c:
268 * loudmouth/lm-proxy.c:
269 * loudmouth/lm-sha.c:
270 * loudmouth/lm-utils.c:
272 * loudmouth/lm-sock.[ch]:
273 - Network abstraction layer.
275 2006-04-18 Mikael Hallendal <micke@imendio.com>
277 * loudmouth/lm-ssl-openssl.c: (_lm_ssl_begin):
278 - Fixed an issue reported by Martyn when using non-blocking sockets.
280 2006-04-12 Mikael Hallendal <micke@imendio.com>
285 - Bumped the autoconf and automake requirements.
286 - Added support to compile with --with-ssl=gnutls|openssl|no. The
287 default is to build against gnutls and you must explicitely tell that
288 you don't want SSL support or configure will fail if you don't have
289 GnuTLS (or building with --with-ssl=openssl).
290 * loudmouth/Makefile.am:
291 * loudmouth/lm-ssl-openssl.c:
292 - Added an OpenSSL backend. Currently doesn't verify certificates.
294 2006-04-05 Mikael Hallendal <micke@imendio.com>
296 * configure.in: Define HAVE_SSL which will be set if GnuTLS or OpenSSL
298 * loudmouth/Makefile.am:
299 * loudmouth/lm-connection.c:
300 * loudmouth/lm-internals.h:
301 * loudmouth/lm-ssl-base.[ch]:
302 * loudmouth/lm-ssl-generic.c:
303 * loudmouth/lm-ssl-gnutls.c:
304 * loudmouth/lm-ssl-internals.h: Took out the SSL functions from
306 * loudmouth/lm-ssl.[ch]:
307 - Refactored the SSL stuff to make room for an OpenSSL implementation.
308 - lm-ssl-generic and lm-ssl-base contains the shared parts between the
309 GnuTLS and the OpenSSL implementations. lm-ssl-gnutls.c will contain
310 GnuTLS specifics and lm-ssl-openssl.c will contain OpenSSL.
312 2006-04-05 Mikael Hallendal <micke@imendio.com>
314 * Speed release of 1.0.3
316 * configure.in: Bumped to 1.0.3
317 * loudmouth/lm-ssl.c: (ssl_free), (ssl_func_always_continue):
318 - Build fix for building without SSL, thanks foser, LM-25.
320 2006-04-05 Mikael Hallendal <micke@imendio.com>
323 * NEWS: Updated for 1.0.2
324 * configure.in: Bumped version to 1.0.2
326 2006-04-03 Mikael Hallendal <micke@imendio.com>
328 * loudmouth/lm-connection.c: (connection_free),
329 (_lm_connection_succeeded), (connection_buffered_write_cb),
330 (connection_output_is_buffered), (connection_setup_output_buffer),
331 (connection_do_close), (connection_do_write), (connection_send),
332 (lm_connection_new), (lm_connection_authenticate):
333 - Added an output buffer that will be enabled if the nonblocking write
334 cannot be performed in one go (for large messages).
336 * loudmouth/lm-internals.h:
337 * loudmouth/lm-ssl.c: (ssl_func_always_continue), (_lm_ssl_send),
339 - Added a default SSL function that will always continue, this will
340 be used if NULL is passed in as SSL function to lm_ssl_new.
342 2006-03-20 Mikael Hallendal <micke@imendio.com>
344 * loudmouth/lm-connection.c:
345 (connection_do_open): Fixed up some of the error codes replied.
346 (lm_connection_open_and_block):
347 - Set the error if connection fails.
350 2006-03-20 Mikael Hallendal <micke@imendio.com>
357 * tests/test-objects.[ch]:
358 - Started to add support for the Check unit test framework.
360 2006-03-20 Mikael Hallendal <micke@imendio.com>
362 * loudmouth/lm-connection.c: Fixes LM-16.
363 (_lm_connection_failed_with_error):
364 - Call connection_do_close to remove sources.
365 (connection_do_close): Always set the connection state to CLOSED.
367 2006-01-02 Mikael Hallendal <micke@imendio.com>
371 2005-08-16 Mikael Hallendal <micke@imendio.com>
377 * loudmouth/lm-connection.c: (connection_free):
378 - Unref context if it is set.
380 2005-08-14 Mikael Hallendal <micke@imendio.com>
384 - Version 1.0, yiiiha!
386 2005-08-12 Mikael Hallendal <micke@imendio.com>
388 * loudmouth/lm-connection.c: (_lm_connection_failed_with_error):
389 - Set state to LM_CONNECTION_STATE_CLOSED if we failed to connect.
392 2005-08-12 Mikael Hallendal <micke@imendio.com>
394 * loudmouth/lm-connection.c:
395 (lm_connection_authenticate_and_block):
396 - Set state correctly.
398 (lm_connection_send_with_reply_and_block):
399 - Check that connection is open before using it.
402 2005-07-30 Mikael Hallendal <micke@imendio.com>
406 * loudmouth/lm-connection.c: (connection_add_watch):
409 2005-07-09 Martyn Russell <mr@gnome.org>
411 * loudmouth/lm-connection.c (lm_connection_set_ssl):
412 - Error when trying to set up SSL knowing it is not supported.
414 2005-05-17 Mikael Hallendal <micke@imendio.com>
416 * loudmouth/lm-ssl.c:
417 * loudmouth/lm-connection.c:
418 * loudmouth/lm-proxy.c:
419 - Fixed some gcc 4.0 warnings.
420 * loudmouth/lm-ssl.[ch]: Made the API more consistent.
421 * examples/test-lm.c: Fixed some gcc 4.0 warnings.
423 2005-05-13 Mikael Hallendal <micke@imendio.com>
425 * loudmouth/lm-ssl.c: (_lm_ssl_read):
426 - Try to fix LM-3 for real this time.
428 2005-05-08 Mikael Hallendal <micke@imendio.com>
436 2005-05-05 Mikael Hallendal <micke@imendio.com>
438 * loudmouth/lm-connection.c:
439 (_lm_connection_succeeded):
440 - Don't unref io_channel here as well, already done in do_close.
441 - Fixes LM-5, reported by Daniel Lavalliere.
442 (connection_do_close):
443 - Set fd to -1 to be sure it's not used again.
445 2005-05-05 Mikael Hallendal <micke@imendio.com>
447 * loudmouth/lm-ssl.c: (_lm_ssl_read):
448 - Don't accidently return a negative bytes_read.
449 - Fixes LM-3, reported by Daniel Lavalliere.
451 2005-05-05 Mikael Hallendal <micke@imendio.com>
453 * loudmouth/lm-connection.c: (connection_free):
454 - Unref LmSSL when freeing connection. Reported by Daniel Lavalliere.
457 2005-04-24 Mikael Hallendal <micke@imendio.com>
459 * loudmouth/lm-connection.c: (connection_free):
460 - Free the incoming message queue, reported by Daniel Lavalliere.
462 2005-04-24 Mikael Hallendal <micke@imendio.com>
464 * loudmouth/lm-connection.c: (_lm_connection_succeeded),
465 (_lm_connection_failed_with_error), (connection_connect_cb),
466 (connection_do_connect), (connection_do_close):
467 - Disconnect from the connect io-watch when connect is done.
468 - Based on a patch from Daniel Lavalliere.
470 2005-04-18 Mikael Hallendal <micke@imendio.com>
472 * loudmouth/lm-connection.c: (connection_free):
473 - Check if connection is opening as well and close it if it is.
474 - Fix suggested by Daniel Lavalliere.
476 2005-03-31 Mikael Hallendal <micke@imendio.com>
480 * loudmouth/lm-connection.c:
481 * loudmouth/lm-ssl.c:
483 - Adding CONTRIBUTORS file.
485 2005-03-31 Mikael Hallendal <micke@imendio.com>
489 - Removed the mono directory from the release tarball, never finished
490 and should probably be redone from scratch if to be done now.
492 2005-03-31 Mikael Hallendal <micke@imendio.com>
494 * loudmouth/lm-debug.h: Correct log domain
495 * loudmouth/lm-ssl.c: (ssl_verify_certificate):
496 - Removed GNUTLS_CERT_NOT_TRUSTED which has been removed from GnuTLS.
497 - Patch from foser@gentoo.org
499 2005-02-02 Mikael Hallendal <micke@imendio.com>
501 * examples/lm-change-password.c: (print_usage), (main):
502 - Support sending --host which would be the host part of the jid if
503 the connect server is different.
505 2005-01-27 Martyn Russell <mr@gnome.org>
507 * loudmouth/lm-connection.c (_lm_connection_failed_with_error):
508 - Added fix to call the open callback when all connection attempts
509 fail to the destination server.
511 2005-01-19 Mikael Hallendal <micke@imendio.com>
513 * loudmouth/lm-connection.c: (connection_in_event):
514 * loudmouth/lm-ssl.c: (_lm_ssl_read):
515 - Seems GnuTLS returns a huge size as read bytes when the server is
516 disconnected. Check if returned read size is larger than asked for
517 if so, set the connection to be hung up.
520 2004-11-08 Mikael Hallendal <micke@imendio.com>
522 * examples/lm-change-password.c: Added SSL support
523 * examples/lm-register.c: Added SSL support
525 2004-10-31 Mikael Hallendal <micke@imendio.com>
529 * NEWS: Updated for 0.17.2
530 * configure.in: Bumped version to 0.17.2
532 2004-10-30 Mikael Hallendal <micke@imendio.com>
534 * loudmouth/lm-parser.c: (lm_parser_parse):
535 - Removed that hack to try to convert to utf8, the stream should be
536 utf8 according to the Jabber specs. This hack caused a lot of weird
540 2004-10-22 Mikael Hallendal <micke@imendio.com>
542 reviewed by: <delete if not using a buddy>
544 * loudmouth/lm-connection.h:
545 * loudmouth/lm-error.h:
546 * loudmouth/lm-message-handler.h:
547 * loudmouth/lm-message-node.h:
548 * loudmouth/lm-message.h:
549 * loudmouth/lm-proxy.h:
550 * loudmouth/lm-utils.h:
551 * loudmouth/lm-ssl.h:
552 - G_BEGIN_DECLS and G_END_DECLS
553 * loudmouth/loudmouth.h:
556 2004-10-08 Mikael Hallendal <micke@imendio.com>
558 * loudmouth/lm-connection.c: (connection_new_message_cb):
559 - Fix crash on Solaris when running in verbose mode.
561 2004-10-05 Mikael Hallendal <micke@imendio.com>
565 - s/Imendio HB/Imendio AB/
567 2004-10-05 Mikael Hallendal <micke@imendio.com>
569 * docs/reference/loudmouth-sections.txt:
570 - Added missing function
572 2004-09-24 Tim Robbins <tim@teragen.com.au>
574 * loudmouth/lm-connection.c: (connection_do_close):
575 - Use g_source_destroy instead of g_source_remove since we might not
576 use the default main context.
578 2004-09-20 Tollef Fog Heen <tfheen@raw.no>
580 * loudmouth/lm-connection.c:
581 (connection_in_event): Use gsize and not gint, they have
582 different sizes on 64 bit architectures.
584 * loudmouth/lm-ssl.c, loudmouth/lm-internals.h:
585 Adjust prototype of _lm_ssl_read to match.
587 2004-09-03 Mikael Hallendal <micke@imendio.com>
589 * examples/Makefile.am:
590 * examples/lm-register.c:
591 - Added small tool to register an account
593 2004-09-02 Mikael Hallendal <micke@imendio.com>
595 * loudmouth/lm-connection.c: (lm_connection_set_proxy):
596 - Use NULL to unset the proxy settings
597 * docs/reference/tmp/lm-proxy.sgml: Updated LmProxyType docs
599 2004-08-30 Mikael Hallendal <micke@imendio.com>
603 * NEWS: Updated for 0.17.1
604 * configure.in: Bumped version to 0.17.1
605 * loudmouth/lm-connection.c:
606 (connection_start_keep_alive):
607 - Don't add idle if keep alive rate is 0.
608 - Patch from Marcin Krzyżanowski <krzak@hakore.com>
609 (lm_connection_new): initialize keep alive rate
611 2004-08-27 Mikael Hallendal <micke@imendio.com>
615 * NEWS: Updated for 0.17
616 * configure.in: Don't try to output mono Makefiles
617 * docs/reference/tmpl/lm-connection.sgml: Updated
618 * loudmouth/lm-connection.[ch]:
619 - Changed the LmConnectionState enum to follow the rest of the API
622 2004-08-25 Mikael Hallendal <micke@imendio.com>
624 * loudmouth/lm-connection.[ch]:
625 (connection_send_keep_alive),
626 (connection_start_keep_alive),
627 (connection_stop_keep_alive): Added
628 (lm_connection_set_keep_alive_rate):
629 - Added support to have Loudmouth send keep alive packages, a single
630 space, at regular intervals.
632 2004-08-09 Mikael Hallendal <micke@imendio.com>
634 * examples/test-tunnel.c: Updated.
635 * loudmouth/lm-connection.[ch]:
636 (lm_connection_get_jid), (lm_connection_set_jid):
637 - Replaced the _host functions with these. These makes much more sense.
639 2004-08-08 Mikael Hallendal <micke@imendio.com>
641 * configure.in: Bumped version to 0.17
643 2004-08-08 Mikael Hallendal <micke@imendio.com>
645 * docs/reference/tmpl/lm-proxy.sgml: Updated docs
646 * examples/test-tunnel.c: Use the new API for connecting to other host
647 than the actual server name (host part of jid).
648 * loudmouth/lm-connection.[ch]:
649 (lm_connection_set_host), (lm_connection_get_host): Added
650 - Use lm_connection_get_host internally when connecting.
651 - Make LM_PROXY_TYPE_NONE reset the proxy settings on a connection.
652 * loudmouth/lm-proxy.c: (_lm_proxy_connect_cb): Don't connect when
653 proxy is of type LM_PROXY_TYPE_NONE.
655 2004-08-08 Mikael Hallendal <micke@imendio.com>
657 * docs/reference/tmpl/lm-proxy.sgml: Added LM_PROXY_TYPE_NONE
658 * examples/Makefile.am: Added test-tunnel.c
659 * examples/test-tunnel.c:
660 - Added test that uses LM_PROXY_TYPE_NONE.
661 * loudmouth/lm-internals.h: Cleaning
662 * loudmouth/lm-proxy.c:
663 - Support using LM_PROXY_TYPE_NONE for direct
664 (for example an ssh-tunnel) "proxy".
666 2004-08-03 Mikael Hallendal <micke@imendio.com>
668 * Synced from SVN. Going to continue working on it here.
670 2004-06-15 Mikael Hallendal <micke@imendio.com>
672 * README: Updated GnuTLS dependency.
673 * mono/*: Some work on the mono bindings.
675 2004-05-28 Mikael Hallendal <micke@imendio.com>
678 - Correctly inform whether SSL support was enabled or not.
680 2004-05-28 Mikael Hallendal <micke@imendio.com>
682 * src/lm-sha.c: Fixed lvalue cast that wasn't approved by newer GCC.
684 2004-05-10 Mikael Hallendal <micke@imendio.com>
686 * configure.in: Enable Mono on request
689 - Updated the bindings some.
690 - Removed the autogenerated, it's such a small API that I figured
691 it was easier to wrap it manually.
693 2004-04-30 Mikael Hallendal <micke@imendio.com>
695 * loudmouth/lm-parser.c (parser_end_node_cb): Unref the message node.
697 2004-04-29 Mikael Hallendal <micke@imendio.com>
699 * examples/lm-change-password.c:
700 * examples/Makefile.am:
701 - Added a small tool to change the password on a jabber account.
703 2004-04-27 Mikael Hallendal <micke@imendio.com>
705 * Ignore on autogenerated files.
707 2004-04-20 Mikael Hallendal <micke@imendio.com>
709 * loudmouth/*.[ch]: Updated copyright information
711 2004-04-20 Mikael Hallendal <micke@imendio.com>
713 * configure.in: Now depend on Glib 2.4
714 * loudmouth/lm-queue.[ch]: Removed, use the new GQueue in Glib 2.4
715 * loudmouth/lm-connection.[ch]: Use GQueue instead of LmQueue.
717 2004-04-16 Mikael Hallendal <micke@imendio.com>
719 * configure.in: Added libtasn1 requirement
720 * loudmouth.spec.in: Added requirement on libtasn if built with SSL.
722 2004-04-04 Mikael Hallendal <micke@imendio.com>
724 * loudmouth/lm-sha.c: Commited compile fix from Sjoerd.
726 2004-03-20 Mikael Hallendal <micke@imendio.com>
728 * docs/reference/loudmouth-sections.txt:
729 - Added lm_connection_get_state
730 - Added LmConnectionState
732 2004-03-17 Mikael Hallendal <micke@imendio.com>
738 * configure.in: Bumped to 0.16
739 * NEWS: Updated for 0.16
741 2004-03-17 Mikael Hallendal <micke@imendio.com>
743 * docs/reference/*: Updated documentation.
744 * loudmouth/*: Fixed the documentation in a couple of places.
746 2004-03-17 Mikael Hallendal <micke@imendio.com>
748 * loudmouth/lm-connection.[ch]
749 (lm_connection_new_with_context):
750 - Added to be able to give what context the connection should be
752 - All internal functions are updated to use the context or NULL if
753 lm_connection_new was called.
754 - Should make it possible to use several LmConnections in various
757 2004-03-17 Mikael Hallendal <micke@imendio.com>
759 * loudmouth/lm-connection.c:
760 * loudmouth/lm-internal.h:
761 * loudmouth/lm-proxy.c:
762 - Make the HTTP proxy support asynchronous. Patch from Josh Beam.
763 - Re-enable the HTTP proxy support.
764 * examples/lm-send-sync.c:
765 * examples/lm-send-async.c:
766 * examples/test-http-proxy.c:
767 - Added two of the old examples and a new one to test out the HTTP
770 2004-03-17 Mikael Hallendal <micke@imendio.com>
772 * configure.in: Generate examples/Makefile
773 * loudmouth/test-jid.c: Removed
774 * loudmouth/test-lm.c: Moved to examples/
775 * exmples/*: Moved out from loudmouth/
777 2004-02-05 Mikael Hallendal <micke@imendio.com>
779 * README: Updated information about website and bug reporting
781 2004-01-29 Richard Hult <richard@imendio.com>
783 * loudmouth/lm-message-node.c: (lm_message_node_to_string):
784 * loudmouth/lm-message.c: (lm_message_new):
785 (lm_message_new_with_sub_type), (lm_message_unref):
786 - Plug leaks and fix two small coding style issues.
788 2004-01-23 Mikael Hallendal <micke@imendio.com>
796 2004-01-22 Frederic Crozat <fcrozat@mandrakesoft.com>
799 * loudmouth/lm-ssl.c: (ssl_verify_certificate):
800 Don't use deprecated function of gnutls.
801 Now requires gnutls >= 1.0.0
803 2004-01-21 Mikael Hallendal <micke@imendio.com>
807 2004-01-21 Mikael Hallendal <micke@imendio.com>
811 - Removed the mono bindings for now.
813 2004-01-21 Richard Hult <richard@imendio.com>
816 - The library changed name, update to libloudmouth-1.la.
818 2004-01-21 Mikael Hallendal <micke@imendio.com>
820 * docs/reference/tmpl/lm-ssl.sgml:
821 * loudmouth/lm-ssl.c:
822 - Added API documentation
824 2004-01-21 Mikael Hallendal <micke@imendio.com>
826 * docs/reference/loudmouth-docs.sgml:
827 * docs/reference/loudmouth-sections.txt:
828 * docs/reference/tmpl/lm-connection.sgml:
829 * docs/reference/tmpl/loudmouth-unused.sgml:
830 * docs/reference/tmpl/lm-ssl.sgml:
831 * loudmouth/lm-ssl.h:
832 - Added new file to documentation
834 2004-01-21 Mikael Hallendal <micke@imendio.com>
837 * configure.in: Work on the C# bindings
838 * NEWS: Preparing for 0.15
839 * loudmouth-1.0.pc.in: Versioned the library
840 * loudmouth/Makefile.am: ditto
841 * loudmouth/lm-connection.c:
842 * loudmouth/lm-connection.h: Disabled the proxy support.
845 * mono/loudmouth/Makefile.am:
846 * mono/loudmouth/loudmouth-api.xml:
847 * mono/loudmouth/loudmouth.metadata:
848 * mono/sources/loudmouth-sources.xml:
849 - WIP on the bindings, first cut of generated bindings.
851 2004-01-16 Mikael Hallendal <micke@imendio.com>
853 * loudmouth/lm-connection.c:
854 (connection_failed_with_error),
855 (connection_connect_cb):
856 (connection_do_connect):
857 - Don't fall through after calling connection_failed.
860 2004-01-15 Mikael Hallendal <micke@imendio.com>
862 * loudmouth/Makefile.am:
864 * loudmouth/lm-connection.c:
865 * loudmouth/lm-connection.h:
866 - Splitted out the SSL parts
867 - No longer contains loads of #ifdefs around tls parts
868 - Added lm_connection_[set|get]_ssl instead.
869 * loudmouth/lm-internals.h:
871 * loudmouth/lm-ssl.c:
872 * loudmouth/lm-ssl.h:
873 - New files, the SSL parts from LmConnection.
874 - Declares no-ops for SSL functions if compiled without support for it.
875 * loudmouth/test-lm.c:
876 - Updated for new SSL API.
878 2004-01-15 Mikael Hallendal <micke@imendio.com>
880 * loudmouth/lm-connection.c:
881 - Added Sjoerd Simons to copyright list.
883 2004-01-15 Mikael Hallendal <micke@imendio.com>
885 * loudmouth/Makefile.am:
886 - Added lm-proxy.[ch]
887 * loudmouth/lm-connection.c:
888 * loudmouth/lm-connection.h:
889 - Commited patch from Sjoerd Simons to make async connect work better.
890 - Cleaned out the proxy support to it's own file.
891 - Made sure all public functions user g_return_(val)_if_fail.
892 * loudmouth/lm-internals.h:
893 - cleaned up a bit and added proxy function and base64 encoding
894 * loudmouth/lm-message-handler.c:
896 * loudmouth/lm-proxy.c:
897 * loudmouth/lm-proxy.h:
898 - Added, broken out of LmConnection
899 - Commited patch from Josh Beam
900 * loudmouth/lm-utils.c:
901 (_lm_utils_base64_encode): Added.
903 2004-01-08 Richard Hult <richard@imendio.com>
905 * loudmouth/lm-connection.c (connection_timeout_check_open):
908 * acinclude.m4: Add gmtoff check.
910 * loudmouth/lm-utils.c (lm_utils_get_localtime): Use tm_gmtoff if
913 2004-01-06 Mikael Hallendal <micke@imendio.com>
915 * loudmouth/lm-connection.c:
916 - Now works with sync open again.
917 * loudmouth/lm-utils.c: (_lm_utils_free_callback):
920 2004-01-05 Mikael Hallendal <micke@imendio.com>
922 * loudmouth/lm-connection.c:
923 - Work in progress of making the lm_connection_open really async.
924 - Currently broken for lm_connection_open_block.
926 2003-12-27 Mikael Hallendal <micke@imendio.com>
928 * loudmouth/lm-connection.[ch]:
929 (connection_verify_certificate),
930 (connection_do_open),
931 (connection_do_close),
932 (connection_in_event),
934 (lm_connection_new): Updated to not pass SSL function everywhere.
935 (lm_connection_open): Removed the _ssl function
936 (lm_connection_open_and_block): Removed the _ssl function
937 (lm_connection_set_use_ssl): Added, set LmSSLFunction here instead.
938 (lm_connection_get_use_ssl): Internal update
940 2003-12-27 Mikael Hallendal <micke@imendio.com>
942 * docs/reference/tmpl/lm-error.sgml:
943 * loudmouth/lm-connection.c:
944 * loudmouth/lm-connection.h:
945 (connection_connect_nonblocking),
946 (connection_do_open),
947 (connection_http_proxy_negotiate),
949 (lm_connection_get_proxy_type),
950 (lm_connection_set_proxy_type),
951 (lm_connection_get_proxy_server),
952 (lm_connection_set_proxy_server),
953 (lm_connection_get_proxy_port),
954 (lm_connection_set_proxy_port):
955 - Add support for HTTP proxy
956 - Patch from Josh Beam <josh@3ddrome.com>
957 - Needed changes to Loudmouth to fix bug #117757 in Gossip.
959 2003-12-19 Mikael Hallendal <micke@imendio.com>
961 * loudmouth/lm-connection.c:
962 (connection_free): cleaned up a bit.
963 (connection_connect_nonblocking): added, nonblocking connect
964 (connection_do_open):
965 - Use the nonblocking connect
967 (connection_do_close): cleaned up
968 (connection_auth_reply): set state
969 (lm_connection_cancel_open): added
970 (lm_connection_authenticate): set state
971 (lm_connection_is_open): use state
972 (lm_connection_is_authenticated): use state
973 (lm_connection_get_state): added
974 - Part fixes bug #122326
976 2003-12-15 Mikael Hallendal <micke@imendio.com>
978 * README: Updated information about bug reporting
980 2003-12-15 Mikael Hallendal <micke@imendio.com>
982 * loudmouth/lm-connection.c:
983 - Fixed issue with the SSL parts. Patch from Colin Walters
985 2003-11-20 Ross Burton <ross@burtonini.com>
987 * loudmouth/lm-message-node.h:
988 - Mark the private members how gtk-doc wants it.
990 * loudmouth/lm-message-node.c:
991 - Fix comment typos and document more parameters.
993 * loudmouth/lm-connection.c: Fix comment typos.
995 * docs/reference/loudmouth-sections.txt:
996 - Removed a non-existent function.
998 * docs/reference/tmpl/lm-connection.sgml: Fix some typos.
1000 * docs/reference/tmpl/lm-message-node.sgml:
1001 - Document raw_node, and remove private fields.
1003 * docs/reference/tmpl/lm-message.sgml: gtk-doc did this itself...
1005 2003-11-16 Mikael Hallendal <micke@imendio.com>
1007 * loudmouth/lm-connection.c:
1008 (lm_connection_new): Don't create and attach source here
1009 (lm_connection_open): Do it here,
1010 (lm_connection_open_and_block): and here. Fixes #126983.
1012 2003-11-11 Mikael Hallendal <micke@imendio.com>
1014 * loudmouth/lm-connection.c:
1015 (connection_do_close): Remove the incoming source. Reported and fix
1016 proposed by Christopher G. Abiad
1017 (lm_connection_authenticate_and_block):
1018 - Set error message on auth failed (should be more explicit). Fixes
1019 problem when you try to read the error message on fail.
1021 2003-11-11 Mikael Hallendal <micke@imendio.com>
1024 - Added README.WIN32 so it will be distributed next release.
1026 2003-10-13 Mikael Hallendal <micke@imendio.com>
1028 * configure.in: Bumped version to 0.14.1.99
1030 * loudmouth/lm-message.c:
1031 (lm_message_new): Always set an ID on the message.
1033 2003-10-13 Mikael Hallendal <micke@imendio.com>
1035 * mono/*: Added first cut at C-sharp bindings that I hacked up a while
1036 ago. Can't continue development at the moment since the mono compiler
1037 segfaults on my machine at the moment.
1039 * python/*: Johan Dahlin added a first cut of python bindings, yay him!
1041 2003-10-13 Mikael Hallendal <micke@imendio.com>
1043 * NEWS: Updated for 0.14.1
1045 * configure.in: Bumped to 0.14.1
1047 * loudmouth/lm-connection.c: (connection_in_event): check if bytes_read
1048 equals GNUTLS_E_AGAIN, fixes crash. Patch by Marinus Schraal.
1050 2003-10-03 Mikael Hallendal <micke@imendio.com>
1054 * NEWS: Updated for 0.14
1056 * configure.in: Bumped to 0.14
1058 2003-10-02 Mikael Hallendal <micke@imendio.com>
1060 * loudmouth/lm-connection.c: (connection_free):
1061 - Free the message handlers and message handler list when free'ing
1064 2003-10-01 Mikael Hallendal <micke@imendio.com>
1066 * configure.in: Tweaked the --with-ssl option a bit.
1068 * loudmouth.spec.in:
1069 - Added a with_ssl to be able to easily turn of GNU Tls support.
1072 2003-10-01 Mikael Hallendal <micke@imendio.com>
1074 * loudmouth/lm-connection.c: (connection_do_open):
1075 - Added a patch for IPv6-support submitted by Sjoerd Simons.
1076 - Sjoerd also seems to know this stuff better than me since his
1077 connection code looked more sane than mine. Thanks alot!
1079 2003-10-01 Mikael Hallendal <micke@imendio.com>
1081 * loudmouth/Makefile.am:
1082 - added lm-queue.[ch]
1084 * loudmouth/lm-queue.[ch]: copied and extended from GQueue.
1086 * loudmouth/lm-connection.c:
1087 - Use LmQueue instead of GQueue
1088 (lm_connection_open_and_block): Better handling of the queue.
1090 (lm_connection_send_with_reply_and_block):
1091 - Fixed a bug causing replies to be over looked.
1093 2003-10-01 Mikael Hallendal <micke@imendio.com>
1095 * README.WIN32, win32-config.h:
1096 - Added information about how to build on Windows. Fixes LM-12
1098 2003-08-24 Martyn Russell <ginxd@btopenworld.com>
1100 * loudmouth/lm-connection.c:
1101 (connection_in_event): Use an int for bytes_read. Since bytes_read is
1102 now also used for gnutls return value (which can be < 0) a gsize
1103 (unsigned) is not a good idea...
1105 2003-08-15 Mikael Hallendal <micke@imendio.com>
1109 * configure.in: Bumped to 0.13.2
1110 * NEWS: Updated for 0.13.2
1112 * loudmouth/lm-parser.c: (parser_end_node_cb):
1113 - Don't crash on </stream:stream>. Fixes bug #117952
1115 2003-08-05 Mikael Hallendal <micke@imendio.com>
1119 * NEWS: Updated for 0.13.1
1120 * configure.in: Bumped to 0.13.1
1122 2003-08-05 Mikael Hallendal <micke@imendio.com>
1124 * acinclude.m4: Added GnuTLS-macro from GnuTLS-distribution.
1126 * configure.in: Added comment if SSL support disabled.
1128 * loudmouth.spec.in: Added Build-requirment on gtk-doc.
1132 * NEWS: Updated for 0.13
1133 * configure.in: Bumped to 0.13
1135 2003-08-04 Mikael Hallendal <micke@imendio.com>
1138 - Added comment about GnuTLS and --with-included-libtasn1.
1139 - Fixes LM-7 and bug #117801
1141 2003-08-04 Mikael Hallendal <micke@imendio.com>
1143 * loudmouth/lm-connection.c: (connection_in_event):
1144 - Disconnect and report that we are disconnected if read doesn't work.
1145 This solved the problem when Gossip eats 100% CPU because the server
1146 got disconnected. Fixes LM-9.
1148 * loudmouth/Makefile.am: Use -DRUNTIME_ENDIAN, fixes LM-8, bug #118502.
1150 * loudmouth/lm-connection.c:
1151 - Modifed patch from Mikhail Zabaluev, fixes LM-5.
1152 * (connection_free): close connection if it's still open.
1153 * (connection_do_open): Store away the GSource handlers.
1154 * (connection_do_close): Remove the GSources from the IOChannel.
1155 * (connection_in_event, connection_error_event, connection_hup_event):
1156 - Return FALSE if io_channel = NULL.
1159 - Submitted patch for Loudmouth from Mikhail Zabaluev to
1160 make configure.in use the aclocal-stuff from gnutls instead of
1161 selfmade hack. Fixes LM-6.
1163 2003-07-29 Mikael Hallendal <micke@imendio.com>
1165 * loudmouth/lm-message.[ch]:
1166 - Added LM_MESSAGE_SUB_TYPE_NORMAL to be a sub type that can actually
1168 - If type is not set in a <message/>-node it won't be reported to be
1169 LM_MESSAGE_SUB_TYPE_NORMAL but rather LM_MESSAGE_SUB_TYPE_NOT_SET.
1171 2003-07-17 Mikael Hallendal <micke@imendio.com>
1175 * NEWS: Updated for 0.12
1176 * configure.in: Bumped to 0.12
1178 2003-07-17 Mikael Hallendal <micke@imendio.com>
1180 * loudmouth/lm-connection.c:
1181 (auth_req_data_free): Added, free's auth data
1182 (connection_create_auth_req_msg):
1183 - Added, generates an auth request message
1184 (connection_create_auth_msg):
1185 - Added, generates an auth message
1186 (connection_auth_req_reply): Added
1187 (connection_check_auth_type): Added
1188 (lm_connection_authenticate): Modified
1189 (lm_connection_authenticate_and_block): Modified
1192 2003-07-17 Mikael Hallendal <micke@imendio.com>
1194 * configure.in: Added GNUTLS_REQUIRED
1195 * loudmouth.spec.in: Added gnutls dependency in RPM's.
1197 2003-07-17 Mikael Hallendal <micke@imendio.com>
1199 * docs/reference/loudmouth-sections.txt: Added new functions
1200 * docs/reference/tmpl/lm-error.sgml: Documented undocumented references.
1201 * docs/reference/tmpl/lm-message-handler.sgml: Same.
1202 * docs/reference/tmpl/loudmouth-unused.sgml: Same
1203 * loudmouth/lm-debug.c: Same
1205 * loudmouth/lm-message-handler.c:
1206 * loudmouth/lm-message-handler.h:
1207 (_lm_message_handler_handle_message):
1208 - Check if handler is valid before trying to handle message.
1209 (lm_message_handler_new): Set handler to be valid.
1210 (lm_message_handler_invalidate): Added. Fixes cf-bug #677
1211 (lm_message_handler_is_valid): Added
1213 2003-07-14 Mikael Hallendal <micke@imendio.com>
1217 * configure.in: Bumped to 0.11
1218 * NEWS: Updated for 0.11
1220 2003-07-12 Mikael Hallendal <micke@imendio.com>
1223 - Added SSL support, patch from Bartosz Zapalowski. THIS GUY ROCKS!
1224 * docs/reference/loudmouth-sections.txt:
1225 - added lm_connection_supports_ssl.
1226 * loudmouth/lm-connection.c: Added support for SSL.
1227 * loudmouth/test-lm.c: (main): Use SSL if it's compiled in.
1229 2003-07-07 Mikael Hallendal <micke@imendio.com>
1233 * NEWS: Updated for 0.10.1
1234 * configure.in: Bumped version to 0.10.1
1236 2003-07-07 Mikael Hallendal <micke@imendio.com>
1238 * loudmouth/lm-connection.c: moved the includes around a bit so that
1239 it builds on FreeBSD without problems.
1241 2003-06-26 Mikael Hallendal <micke@imendio.com>
1244 * configure.in: Changed version to 0.10
1245 * NEWS: Added 0.10 news.
1247 2003-06-25 Mikael Hallendal <micke@imendio.com>
1249 * configure.in: Bumped to 0.9.1
1250 * loudmouth.spec.in: Changed the URL to the project site.
1252 2003-06-24 Mikael Hallendal <micke@imendio.com>
1254 * loudmouth/lm-connection.c:
1255 * loudmouth/lm-sha.c:
1256 * loudmouth/test-lm.c:
1257 - Submitted patch that makes Loudmouth work and build on Win32.
1258 Patch sent by Vince Negri, thanks a lot.
1260 2003-06-15 Mikael Hallendal <micke@imendio.com>
1262 * loudmouth/lm-message.c:
1263 * loudmouth/lm-message.h:
1264 (lm_message_get_sub_type): Return LmMessageSubType.
1265 Found by Alexander Saltanov
1267 2003-06-13 Mikael Hallendal <micke@imendio.com>
1269 * AUTHORS: updated contact information
1270 * README: updated contact information
1271 * loudmouth/*.[ch]: updated email address
1272 * loudmouth/lm-message-node.c: don't lower case the XML
1273 * loudmouth/lm-message.c:
1274 (message_type_from_string): use strcmp rather than strcasecmp
1275 * loudmouth/lm-parser.c:
1276 (parser_start_node_cb),
1277 (parser_end_node_cb),
1278 (lm_parser_new): use strcmp instead of strcasecmp
1280 2003-06-11 Mikael Hallendal <micke@codefactory.se>
1282 * docs/reference/loudmouth-sections.txt: Added new functions
1284 * loudmouth/lm-message-node.c:
1285 (_lm_message_node_new): Set node->raw_mode = FALSE.
1286 (lm_message_node_get_raw_mode): Added
1287 (lm_message_node_set_raw_mode): Added
1288 (lm_message_node_to_string): Don't escape if raw_mode == TRUE
1290 * loudmouth/lm-message-node.h: Added new functions.
1292 2003-04-26 Mikael Hallendal <micke@codefactory.se>
1294 * loudmouth.spec.in: Enable gtk-doc
1298 2003-04-17 Mikael Hallendal <micke@codefactory.se>
1300 * docs/reference/Makefile.am: Make --disable-gtk-doc not try to
1301 install the documents :) Fixes #633, patch by Kevin Dougherty.
1303 * loudmouth/lm-debug.c: Make build work with --disable-debug,
1304 fixes #634, patch by Kevin Dougherty.
1306 2003-04-11 Mikael Hallendal <micke@codefactory.se>
1308 * NEWS: More updates
1310 * configure.in: Bumped version to 0.9
1312 * loudmouth.spec.in: Fixed
1314 * loudmouth/lm-connection.c:
1315 (lm_connection_send_with_reply_and_block): Removed debug output.
1317 2003-04-10 Mikael Hallendal <micke@codefactory.se>
1319 * NEWS: Updated for upcoming 0.9 release.
1321 2003-04-07 Mikael Hallendal <micke@codefactory.se>
1323 * README: Added information about debug output.
1325 * loudmouth/lm-connection.c:
1326 (connection_in_event): Use a define for IN_BUFFER_SIZE
1328 2003-04-07 Mikael Hallendal <micke@codefactory.se>
1331 * loudmouth/lm-connection.c: (connection_in_event):
1333 2003-04-07 Mikael Hallendal <micke@codefactory.se>
1337 * loudmouth/Makefile.am:
1338 - Added lm-debug.[ch]
1339 * loudmouth/lm-internals.h: Added debug-stuff
1340 * loudmouth/lm-connection.c: Use debug-stuff instead of d()-macro.
1341 * loudmouth/lm-message.c: Same
1342 * loudmouth/lm-parser.c: Same
1344 2003-04-05 Mikael Hallendal <micke@codefactory.se>
1346 * Makefile.am: Added .spec and .spec.in to EXTRA_DIST
1347 * configure.in: Set GLIB2_REQUIRED, will be used in the spec-file.
1348 * loudmouth/lm-message.c:
1349 * loudmouth/lm-message.h:
1350 - fixed the support for message and presence elements without type
1353 2003-04-01 Mikael Hallendal <micke@codefactory.se>
1355 * loudmouth/lm-message.c:
1356 (lm_message_get_node): added, using for bindings.
1358 * loudmouth/lm-message-node.c:
1359 (lm_message_node_get_value): added, makes binding easier.
1360 (lm_message_node_set_attribute): splitted out to just set one
1361 attribute. using just this one to bind for C#.
1363 2003-03-24 Mikael Hallendal <micke@codefactory.se>
1365 * loudmouth/lm-connection.c:
1366 (connection_incoming_dispatch):
1367 - don't call handle_message if message is NULL.
1368 (connection_do_open):
1369 - set error, don't send any messages, just open the socket and
1370 send the xml-document starter.
1371 (connection_do_block): Removed.
1372 (connection_create_source): added
1373 (lm_connection_open_and_block): implemented.
1374 (lm_connection_authenticate_and_block): implemented.
1375 (lm_connection_send_with_reply_and_block): implemented.
1377 2003-03-23 Mikael Hallendal <micke@codefactory.se>
1379 * loudmouth/lm-connection.c:
1380 - Now uses a queue for all incoming messages and a source that
1382 (connection_do_close): added, unrefs
1383 io_channel and sets connection to be disconnected.
1384 (connection_do_open): renamed from connection_connect
1386 2003-03-14 Mikael Hallendal <micke@codefactory.se>
1388 * loudmouth/lm-connection.c:
1389 (lm_connection_get_server): added
1390 (lm_connection_set_server): added
1391 (lm_connection_get_port): added
1392 (lm_connection_set_port): added
1393 (lm_connection_get_use_ssl): added
1394 (lm_connection_set_use_ssl): added
1395 (lm_connection_new): Don't take port and use_ssl arguments. Make
1396 server-attribute optional (passing NULL).
1398 * configure.in: bumped to 0.8.99
1400 2003-03-13 Mikael Hallendal <micke@codefactory.se>
1402 * autogen.sh (need_configure_in):
1403 - fix to autogen on solaris. Reported by stric.
1406 - Added check for -lnsl and -lsocket needed to link on solaris.
1410 * configure.in: bumped version to 0.8
1412 * README (Introduction): added some information before the 0.8
1415 * loudmouth/lm-connection.c:
1416 (connection_error_event): call disconnect callback.
1417 (connection_hup_event): same.
1418 (lm_connection_set_disconnect_function): added.
1420 2003-03-05 Mikael Hallendal <micke@codefactory.se>
1422 * loudmouth/*.h: prettified headers.
1424 * docs/reference/*: Updating docs. Now at 100%!
1426 2003-03-03 Mikael Hallendal <micke@codefactory.se>
1428 * loudmouth/lm-message-node.h:
1429 - removed LmMessageNodeFunc, wasn't used anywhere.
1431 * docs/reference/*: Updating docs. At 88% now... sooon!
1433 * Changed license (again), this time back to LGPL. And it'll stay
1436 2003-02-27 Mikael Hallendal <micke@codefactory.se>
1438 * Worked alot on documenting.
1440 2003-02-25 Mikael Hallendal <micke@codefactory.se>
1442 * loudmouth/lm-connection.c (connection_in_event):
1445 2003-02-24 Mikael Hallendal <micke@codefactory.se>
1447 * loudmouth/lm-sha.c: don't use stdint.h, instead use the g*
1448 versions of different int lengths. Fixes #536
1450 2003-02-08 Mikael Hallendal <micke@codefactory.se>
1452 * src/*.c: Started to document
1454 * src/lm-result.h: Removed
1456 * src/lm-error.[ch]: Added
1458 * src/lm-connection.[ch]:
1459 - Use GErrors for reporting errors.
1462 * docs/reference/Makefile.am: Don't link against GObject.
1464 2003-02-06 Mikael Hallendal <micke@codefactory.se>
1466 * loudmouth/lm-connection.c (connection_connect): send the opening
1467 xml tag stating that we'll use encoding utf-8.
1469 2003-02-02 Mikael Hallendal <micke@codefactory.se>
1471 * loudmouth/lm-message.c:
1473 (lm_message_new): take to-argument
1474 (lm_message_new_with_sub_type): take to-argument
1476 * loudmouth/test-lm.c (main): don't init GType, not used anymore..
1478 * lm-message-handler.c:
1479 - include files we actually need :)
1481 * loudmouth/lm-connection.c: don't include removed files.
1483 * loudmouth/Makefile.am:
1484 - Removed all the stuff that generated the marshallers.
1487 - removed gobject deps
1488 - removed glib-genmarshal deps
1490 * loudmouth-1.0.pc.in (Requires): removed all deps except glib.
1492 * loudmouth/lm-connection.c:
1493 - Is no more a GObject, this means that loudmouth now only depends
1494 on GLib which makes it minimal and perfect for embedded systems.
1496 * configure.in: Don't require libgtcpsocket
1498 * loudmouth/lm-connection.c: Don't use libgtcpsocket for
1499 communication. Now uses a GIOChannel.
1502 - Use GDestroyNotify instead of LmFreeFunction.
1503 - Added LmCallback which is a struct with callback,
1504 user_data and a notify function.
1505 - Changed LmConnectionOpenFunction and LmAuthenticateFunction to
1506 be LmResultFunction.
1508 2003-02-01 Mikael Hallendal <micke@codefactory.se>
1510 * loudmouth/lm-sha.c (lm_sha_hash): don't print the digest.
1512 2003-01-31 Mikael Hallendal <micke@codefactory.se>
1514 * *: changed the license to the same one used in RoadRunner.
1516 * loudmouth/lm-sha.c:
1517 - switched the SHA implementation for one with BSD license.
1519 * loudmouth/lm-connection.c (lm_connection_authenticate):
1520 - lm_sha_hash now returns a const gchar *
1523 2003-01-30 Mikael Hallendal <micke@codefactory.se>
1525 * docs/*: Added gtk-doc support. Now I just have to write API docs
1528 * loudmouth/lm-helper.[ch]: Removed.
1530 2003-01-30 Mikael Hallendal <micke@codefactory.se>
1532 * loudmouth/lm-message-node.c:
1533 (lm_message_node_to_string): made public since it's really useful
1534 for debugging your client.
1535 (lm_message_node_find_child): readded this function from the old
1536 LmNode. It traverses the tree to see if it can find the child
1537 and returns at the first it finds. lm_message_node_get_child
1538 only looks at the direct children.
1540 2003-01-29 Mikael Hallendal <micke@codefactory.se>
1542 * loudmouth/lm-connection.c:
1543 (lm_connection_send): don't set ID here. we set it in
1544 send_with_reply if it's not set (since it's needed there to find
1545 the correct handler).
1546 (connection_connection_recv_cb):
1547 - not sure if this helps any, return if length <= 0 instead of
1548 feeding it to the parser.
1550 * loudmouth/lm-message.[ch]:
1551 - Added LmMessageSubType that can be used to set and check a
1552 message's sub type <node type="sub type">.
1553 (message_sub_type_from_string): added
1554 (message_sub_type_to_string): added
1555 (lm_message_new_with_sub_type): added
1556 (lm_message_get_sub_type): added
1558 * loudmouth/lm-message-node.c (lm_message_node_get_child):
1559 - remove variable that caused warning.
1561 * configure.in: updated version to 0.2
1563 2003-01-27 Mikael Hallendal <micke@codefactory.se>
1566 - LmClient -> LmConnection
1567 - Use Message Handlers on LmConnection instead of signals
1568 - LmElement, LmPresence and LmIQ removed
1569 - LmMessage used for all kinds of messages now
1570 - LmMessageHandler added as a generic message handler for all
1572 - send_with_reply added to give a callback when waiting for an
1573 answer to a request.
1574 - LmResult added to most calls. Used to get some feedback on what
1575 might have gone wrong.
1577 2003-01-27 Anders Carlsson <andersca@codefactory.se>
1579 * autogen.sh (FILE): Use lm-message.c for testing.
1581 2003-01-26 Mikael Hallendal <micke@codefactory.se>
1583 * loudmouth/*: Added lm-helper which will create elements to send
1586 2003-01-25 Mikael Hallendal <micke@codefactory.se>
1588 * loudmouth/lm-marshal.list (VOID): cleaned up old marshallers.
1590 * loudmouth/lm-element.c (lm_element_get_type_string): added.
1592 * loudmouth/lm-client.c:
1593 - Changed message, presence and iq received back into signals
1594 - Added default handlers to class
1595 - Calling default handlers only if none of the connected callbacks
1598 2003-01-21 Mikael Hallendal <micke@codefactory.se>
1600 * configure.in: don't use libgtcpsocket 1.0, use 0.1.0
1602 2002-12-10 Mikael Hallendal <micke@codefactory.se>
1604 * loudmouth/lm-util.c:
1605 (lm_util_get_localtime): Added
1606 (lm_util_case_strstr): Removed
1608 * loudmouth/lm-x.h: Removed.
1610 * loudmouth/lm-element.c:
1611 - Added support for an iter for iterating over all x elements.
1612 - Needed to resolve #347
1613 (lm_element_get_x_iter): Added
1614 (lm_x_iter_next): Added
1615 (x_iter_next): Added
1616 (lm_x_iter_free): Added
1618 * loudmouth/Makefile.am (libloudmouthinclude_HEADERS):
1621 2002-12-03 Mikael Hallendal <micke@codefactory.se>
1623 * loudmouth/lm-presence.c:
1624 - Fixed show-array indexing, Fixes #341 and #342
1625 (lm_presence_set_show): don't set
1626 <show/> to "normal", just leave it out.
1627 (presence_show_from_string): don't strcmp for "normal".
1628 (presence_string_from_show): don't return "normal".
1630 2002-11-29 Richard Hult <rhult@codefactory.se>
1632 * loudmouth/lm-client.c (lm_client_subscribe_jid): Wrap g_print
1634 (lm_client_unsubscribe_jid): Likewise.
1635 (lm_client_connect): Add debug print.
1636 (client_connect_done_cb): Add debug print.
1638 * loudmouth/lm-element.c (lm_element_new): When creating a stream
1639 element, use "stream:stream" instead of just "stream". This fixes
1640 the "Invalid XML" error we were getting from the server at the end
1643 * loudmouth/lm-client.c (lm_client_authenticate): Don't free the
1644 digest, it's static memory. This fixes a couple of very weird
1646 (lm_client_disconnect): Revert the fix I did here earlier, we
1647 don't want to set is_connected until we really get a disconnect
1648 callback from the connection. The problem is somewhere else.
1649 (lm_client_send): Compare against </stream:stream> instead of just
1652 2002-11-29 Mikael Hallendal <micke@codefactory.se>
1654 * loudmouth/lm-node.c (node_free): don't free directly, use
1656 (lm_node_add_child_node): ref the child node.
1658 * loudmouth/lm-element.c:
1659 (lm_element_unref): implemented
1660 (lm_element_set_tree): ref the tree.
1662 2002-11-29 Mikael Hallendal <micke@codefactory.se>
1664 * loudmouth/lm-client.c: Changed default_foo_handler to
1667 2002-11-27 Richard Hult <rhult@codefactory.se>
1669 * loudmouth/lm-client.c (client_handle_iq): Fix warning by making
1672 2002-11-26 Richard Hult <rhult@codefactory.se>
1674 * loudmouth/lm-client.c (client_connection_closed_cb):
1675 - Set is_connected to FALSE.
1677 2002-11-26 Mikael Hallendal <micke@codefactory.se>
1679 * loudmouth/*: Changed so that LmElement and subclasses are no
1680 longer objects. Just structs. You need to use get/set-functions
1681 instead of properties.
1683 2002-11-25 Mikael Hallendal <micke@codefactory.se>
1685 * loudmouth/lm-element.c (element_get_property): fixed error
1686 causing object_get ("from") trying to get "to" value.
1688 2002-11-24 Richard Hult <rhult@codefactory.se>
1690 * loudmouth/lm-client.c (client_handle_presence):
1691 - Try to implement subscription requests.
1693 * loudmouth/test-lm.c (main): Fix more callback types.
1695 * loudmouth/lm-client.h:
1696 - Remove lm_client_set_subscription_request_handler, unused.
1698 * loudmouth/test-lm.c (main): Don't cast callbacks with (Type*).
1700 * loudmouth/lm-client.c:
1701 - Change function prototypes from *callback to callback.
1703 * loudmouth/lm-client.h: Remove signal entry from object struct
1704 and change function prototypes to match the definitions.
1706 2002-11-23 Richard Hult <rhult@codefactory.se>
1708 * loudmouth/lm-client.h: Add lm_client_get_agents.
1710 * configure.in: Add compiler warnings logic but leave it disabled
1711 since the sha stuff is not very warning free.
1713 * loudmouth/lm-node.c (lm_node_get_string): Escape the body string
1714 so we generate valid xml when sending things like '<', '>', and
1717 2002-11-23 Mikael Hallendal <micke@codefactory.se>
1719 * loudmouth/lm-node.c (lm_node_unlink): added
1721 * loudmouth/lm-presence.c (presence_set_property): don't set
1724 * loudmouth/lm-iq.c:
1725 (lm_iq_get_query_node):
1726 (lm_iq_set_query_node): removed, use lm_element_find_child and
1727 lm_element_add_child_node instead.
1729 * loudmouth/lm-element.c:
1730 (lm_element_add_child): added :)
1731 (lm_element_find_child): added
1733 * loudmouth/lm-client.c (client_connection_closed_cb): call
1734 disconnect callback.
1736 * loudmouth/lm-sha.[ch]: added, found in jabberd2, remember to
1737 check license issues with this.
1739 * loudmouth/lm-client.c:
1740 (lm_client_authenticate): use digest for sending password instead
1743 * loudmouth/lm-client.c:
1744 (client_handle_iq): handle register reply
1745 (lm_client_register): added
1746 (lm_client_authenticate): moved stuff from iq-helper, easy enough
1747 now with the changes earlier today.
1749 * loudmouth/lm-iq-helper.[ch]: removed, not needed anymore.
1751 * loudmouth/lm-element.c (lm_element_add_child_node): added, this
1752 can be used to add any node to any element.
1754 * loudmouth/lm-presence.c (presence_set_property): priority is an
1757 * loudmouth/lm-node.c (lm_node_add_child_node): rethinking, don't
1760 2002-11-22 Mikael Hallendal <micke@codefactory.se>
1762 * loudmouth/lm-node.c:
1763 (lm_node_add_child): changed to take a name
1764 and a value, very handy when adding key/value pair nodes.
1765 (lm_node_add_child_node): added a _node to the old
1766 lm_node_add_child. Also ref's the child so the user should unref
1767 it after he's finished with it.
1769 * loudmouth/lm-iq.c (lm_iq_new): take the type as argument.
1771 * loudmouth/lm-client.c: added a default iq handler attribute and
1772 use it in handle_iq if the incoming IQ isn't handled by the
1773 library. This way a user of the library can now do anything with
1774 it, even use it's own namespaces and such.
1776 * loudmouth/*: Changes LmXMLNode -> LmNode
1779 - Using LmXMLNode internally in all elements
1780 - Use lm_message_new, lm_iq_new, lm_presence new instead of
1783 * loudmouth/lm-presence.c:
1784 (presence_get_xml_string): set to='' if it exists
1786 * loudmouth/lm-xml-node.c:
1787 (lm_xml_node_ref): added
1788 (lm_xml_node_unref): added
1789 (lm_xml_node_free): made private
1791 * loudmouth/lm-parser.c:
1792 (parser_end_element_cb): just unref the node, don't free it.
1794 * loudmouth/lm-client.c:
1795 - added "name", "version" and "os" proprties.
1796 (lm_client_register_default_message_handler):
1797 (lm_client_register_default_presence_handler): removed, unused
1799 * loudmouth/lm-element.[ch]:
1800 (lm_element_get_tree): Added, returns the XML tree for the
1802 (ilm_element_setup_from_xml): ref the node.
1804 2002-11-20 Richard Hult <rhult@codefactory.se>
1806 * loudmouth/lm-parser.c (lm_parser_parse): Try to convert the xml
1807 input to from ISO-8859-1 to UTF-8 if it's not valid UTF-8. Not
1808 the perfect fix but it makes a common case work.
1810 2002-11-16 Mikael Hallendal <micke@codefactory.se>
1812 * loudmouth/lm-client.c (lm_client_disconnect): send end of
1815 2002-11-15 Richard Hult <rhult@codefactory.se>
1817 * loudmouth/lm-roster.c (lm_roster_new_from_query_node): Get the
1818 group from the child of the query node.
1820 2002-11-15 Mikael Hallendal <micke@codefactory.se>
1822 * loudmouth/lm-client.c: no more signals. You now register message
1823 and presence handlers.
1825 * loudmouth/lm-presence.c (presence_get_property): implemented
1827 * loudmouth/lm-client.c:
1828 - removed the disconnected and connected signals. Now callbacks
1829 passed to lm_client_connect.
1831 2002-11-14 Mikael Hallendal <micke@codefactory.se>
1833 * loudmouth/lm-presence.c:
1834 (presence_class_init): type and show to be int's.
1835 (presence_set_property): same.
1837 * configure.in: bumped version to 0.1.1
1839 * loudmouth/lm-presence.c (lm_presence_set_status): added.
1841 * loudmouth/lm-element.c (element_class_init): not sure if we want
1842 this but readded the PROP_ERROR.
1844 * loudmouth/lm-client.c (lm_client_authenticate): silent warnings
1846 * loudmouth/lm-iq.c (iq_set_attribute): chain up.
1848 * loudmouth/lm-element.c (element_get_property): implement.
1850 * loudmouth/lm-client.c:
1851 - use callbacks for auth and roster instead of signals.
1852 (client_handle_iq): handle auth and roster
1853 (client_add_callback): added
1854 (client_find_callback): added
1855 (client_remove_callback): added
1856 (lm_client_send): take an extra id argument. If passed the message
1857 id will be copied to this argument.
1858 (lm_client_authenticate): take callback+userdata as arguments.
1859 (lm_client_request_roster): same
1861 2002-10-21 Richard Hult <rhult@codefactory.se>
1863 * loudmouth/lm-message.c (message_get_xml_string): Escape the
1864 body, fixes server disconnecting on messages containing <>.
1866 2002-10-02 Richard Hult <rhult@codefactory.se>
1868 * loudmouth/lm-xml-node.c (lm_xml_node_set_value): Don't run
1869 strdown on the node value.