1 2006-03-20 Mikael Hallendal <micke@imendio.com>
3 * loudmouth/lm-connection.c:
4 (connection_do_open): Fixed up some of the error codes replied.
5 (lm_connection_open_and_block):
6 - Set the error if connection fails.
9 2006-03-20 Mikael Hallendal <micke@imendio.com>
16 * tests/test-objects.[ch]:
17 - Started to add support for the Check unit test framework.
19 2006-03-20 Mikael Hallendal <micke@imendio.com>
21 * loudmouth/lm-connection.c: Fixes LM-16.
22 (_lm_connection_failed_with_error):
23 - Call connection_do_close to remove sources.
24 (connection_do_close): Always set the connection state to CLOSED.
26 2006-01-02 Mikael Hallendal <micke@imendio.com>
30 2005-08-16 Mikael Hallendal <micke@imendio.com>
36 * loudmouth/lm-connection.c: (connection_free):
37 - Unref context if it is set.
39 2005-08-14 Mikael Hallendal <micke@imendio.com>
43 - Version 1.0, yiiiha!
45 2005-08-12 Mikael Hallendal <micke@imendio.com>
47 * loudmouth/lm-connection.c: (_lm_connection_failed_with_error):
48 - Set state to LM_CONNECTION_STATE_CLOSED if we failed to connect.
51 2005-08-12 Mikael Hallendal <micke@imendio.com>
53 * loudmouth/lm-connection.c:
54 (lm_connection_authenticate_and_block):
55 - Set state correctly.
57 (lm_connection_send_with_reply_and_block):
58 - Check that connection is open before using it.
61 2005-07-30 Mikael Hallendal <micke@imendio.com>
65 * loudmouth/lm-connection.c: (connection_add_watch):
68 2005-07-09 Martyn Russell <mr@gnome.org>
70 * loudmouth/lm-connection.c (lm_connection_set_ssl):
71 - Error when trying to set up SSL knowing it is not supported.
73 2005-05-17 Mikael Hallendal <micke@imendio.com>
76 * loudmouth/lm-connection.c:
77 * loudmouth/lm-proxy.c:
78 - Fixed some gcc 4.0 warnings.
79 * loudmouth/lm-ssl.[ch]: Made the API more consistent.
80 * examples/test-lm.c: Fixed some gcc 4.0 warnings.
82 2005-05-13 Mikael Hallendal <micke@imendio.com>
84 * loudmouth/lm-ssl.c: (_lm_ssl_read):
85 - Try to fix LM-3 for real this time.
87 2005-05-08 Mikael Hallendal <micke@imendio.com>
95 2005-05-05 Mikael Hallendal <micke@imendio.com>
97 * loudmouth/lm-connection.c:
98 (_lm_connection_succeeded):
99 - Don't unref io_channel here as well, already done in do_close.
100 - Fixes LM-5, reported by Daniel Lavalliere.
101 (connection_do_close):
102 - Set fd to -1 to be sure it's not used again.
104 2005-05-05 Mikael Hallendal <micke@imendio.com>
106 * loudmouth/lm-ssl.c: (_lm_ssl_read):
107 - Don't accidently return a negative bytes_read.
108 - Fixes LM-3, reported by Daniel Lavalliere.
110 2005-05-05 Mikael Hallendal <micke@imendio.com>
112 * loudmouth/lm-connection.c: (connection_free):
113 - Unref LmSSL when freeing connection. Reported by Daniel Lavalliere.
116 2005-04-24 Mikael Hallendal <micke@imendio.com>
118 * loudmouth/lm-connection.c: (connection_free):
119 - Free the incoming message queue, reported by Daniel Lavalliere.
121 2005-04-24 Mikael Hallendal <micke@imendio.com>
123 * loudmouth/lm-connection.c: (_lm_connection_succeeded),
124 (_lm_connection_failed_with_error), (connection_connect_cb),
125 (connection_do_connect), (connection_do_close):
126 - Disconnect from the connect io-watch when connect is done.
127 - Based on a patch from Daniel Lavalliere.
129 2005-04-18 Mikael Hallendal <micke@imendio.com>
131 * loudmouth/lm-connection.c: (connection_free):
132 - Check if connection is opening as well and close it if it is.
133 - Fix suggested by Daniel Lavalliere.
135 2005-03-31 Mikael Hallendal <micke@imendio.com>
139 * loudmouth/lm-connection.c:
140 * loudmouth/lm-ssl.c:
142 - Adding CONTRIBUTORS file.
144 2005-03-31 Mikael Hallendal <micke@imendio.com>
148 - Removed the mono directory from the release tarball, never finished
149 and should probably be redone from scratch if to be done now.
151 2005-03-31 Mikael Hallendal <micke@imendio.com>
153 * loudmouth/lm-debug.h: Correct log domain
154 * loudmouth/lm-ssl.c: (ssl_verify_certificate):
155 - Removed GNUTLS_CERT_NOT_TRUSTED which has been removed from GnuTLS.
156 - Patch from foser@gentoo.org
158 2005-02-02 Mikael Hallendal <micke@imendio.com>
160 * examples/lm-change-password.c: (print_usage), (main):
161 - Support sending --host which would be the host part of the jid if
162 the connect server is different.
164 2005-01-27 Martyn Russell <mr@gnome.org>
166 * loudmouth/lm-connection.c (_lm_connection_failed_with_error):
167 - Added fix to call the open callback when all connection attempts
168 fail to the destination server.
170 2005-01-19 Mikael Hallendal <micke@imendio.com>
172 * loudmouth/lm-connection.c: (connection_in_event):
173 * loudmouth/lm-ssl.c: (_lm_ssl_read):
174 - Seems GnuTLS returns a huge size as read bytes when the server is
175 disconnected. Check if returned read size is larger than asked for
176 if so, set the connection to be hung up.
179 2004-11-08 Mikael Hallendal <micke@imendio.com>
181 * examples/lm-change-password.c: Added SSL support
182 * examples/lm-register.c: Added SSL support
184 2004-10-31 Mikael Hallendal <micke@imendio.com>
188 * NEWS: Updated for 0.17.2
189 * configure.in: Bumped version to 0.17.2
191 2004-10-30 Mikael Hallendal <micke@imendio.com>
193 * loudmouth/lm-parser.c: (lm_parser_parse):
194 - Removed that hack to try to convert to utf8, the stream should be
195 utf8 according to the Jabber specs. This hack caused a lot of weird
199 2004-10-22 Mikael Hallendal <micke@imendio.com>
201 reviewed by: <delete if not using a buddy>
203 * loudmouth/lm-connection.h:
204 * loudmouth/lm-error.h:
205 * loudmouth/lm-message-handler.h:
206 * loudmouth/lm-message-node.h:
207 * loudmouth/lm-message.h:
208 * loudmouth/lm-proxy.h:
209 * loudmouth/lm-utils.h:
210 * loudmouth/lm-ssl.h:
211 - G_BEGIN_DECLS and G_END_DECLS
212 * loudmouth/loudmouth.h:
215 2004-10-08 Mikael Hallendal <micke@imendio.com>
217 * loudmouth/lm-connection.c: (connection_new_message_cb):
218 - Fix crash on Solaris when running in verbose mode.
220 2004-10-05 Mikael Hallendal <micke@imendio.com>
224 - s/Imendio HB/Imendio AB/
226 2004-10-05 Mikael Hallendal <micke@imendio.com>
228 * docs/reference/loudmouth-sections.txt:
229 - Added missing function
231 2004-09-24 Tim Robbins <tim@teragen.com.au>
233 * loudmouth/lm-connection.c: (connection_do_close):
234 - Use g_source_destroy instead of g_source_remove since we might not
235 use the default main context.
237 2004-09-20 Tollef Fog Heen <tfheen@raw.no>
239 * loudmouth/lm-connection.c:
240 (connection_in_event): Use gsize and not gint, they have
241 different sizes on 64 bit architectures.
243 * loudmouth/lm-ssl.c, loudmouth/lm-internals.h:
244 Adjust prototype of _lm_ssl_read to match.
246 2004-09-03 Mikael Hallendal <micke@imendio.com>
248 * examples/Makefile.am:
249 * examples/lm-register.c:
250 - Added small tool to register an account
252 2004-09-02 Mikael Hallendal <micke@imendio.com>
254 * loudmouth/lm-connection.c: (lm_connection_set_proxy):
255 - Use NULL to unset the proxy settings
256 * docs/reference/tmp/lm-proxy.sgml: Updated LmProxyType docs
258 2004-08-30 Mikael Hallendal <micke@imendio.com>
262 * NEWS: Updated for 0.17.1
263 * configure.in: Bumped version to 0.17.1
264 * loudmouth/lm-connection.c:
265 (connection_start_keep_alive):
266 - Don't add idle if keep alive rate is 0.
267 - Patch from Marcin Krzyżanowski <krzak@hakore.com>
268 (lm_connection_new): initialize keep alive rate
270 2004-08-27 Mikael Hallendal <micke@imendio.com>
274 * NEWS: Updated for 0.17
275 * configure.in: Don't try to output mono Makefiles
276 * docs/reference/tmpl/lm-connection.sgml: Updated
277 * loudmouth/lm-connection.[ch]:
278 - Changed the LmConnectionState enum to follow the rest of the API
281 2004-08-25 Mikael Hallendal <micke@imendio.com>
283 * loudmouth/lm-connection.[ch]:
284 (connection_send_keep_alive),
285 (connection_start_keep_alive),
286 (connection_stop_keep_alive): Added
287 (lm_connection_set_keep_alive_rate):
288 - Added support to have Loudmouth send keep alive packages, a single
289 space, at regular intervals.
291 2004-08-09 Mikael Hallendal <micke@imendio.com>
293 * examples/test-tunnel.c: Updated.
294 * loudmouth/lm-connection.[ch]:
295 (lm_connection_get_jid), (lm_connection_set_jid):
296 - Replaced the _host functions with these. These makes much more sense.
298 2004-08-08 Mikael Hallendal <micke@imendio.com>
300 * configure.in: Bumped version to 0.17
302 2004-08-08 Mikael Hallendal <micke@imendio.com>
304 * docs/reference/tmpl/lm-proxy.sgml: Updated docs
305 * examples/test-tunnel.c: Use the new API for connecting to other host
306 than the actual server name (host part of jid).
307 * loudmouth/lm-connection.[ch]:
308 (lm_connection_set_host), (lm_connection_get_host): Added
309 - Use lm_connection_get_host internally when connecting.
310 - Make LM_PROXY_TYPE_NONE reset the proxy settings on a connection.
311 * loudmouth/lm-proxy.c: (_lm_proxy_connect_cb): Don't connect when
312 proxy is of type LM_PROXY_TYPE_NONE.
314 2004-08-08 Mikael Hallendal <micke@imendio.com>
316 * docs/reference/tmpl/lm-proxy.sgml: Added LM_PROXY_TYPE_NONE
317 * examples/Makefile.am: Added test-tunnel.c
318 * examples/test-tunnel.c:
319 - Added test that uses LM_PROXY_TYPE_NONE.
320 * loudmouth/lm-internals.h: Cleaning
321 * loudmouth/lm-proxy.c:
322 - Support using LM_PROXY_TYPE_NONE for direct
323 (for example an ssh-tunnel) "proxy".
325 2004-08-03 Mikael Hallendal <micke@imendio.com>
327 * Synced from SVN. Going to continue working on it here.
329 2004-06-15 Mikael Hallendal <micke@imendio.com>
331 * README: Updated GnuTLS dependency.
332 * mono/*: Some work on the mono bindings.
334 2004-05-28 Mikael Hallendal <micke@imendio.com>
337 - Correctly inform whether SSL support was enabled or not.
339 2004-05-28 Mikael Hallendal <micke@imendio.com>
341 * src/lm-sha.c: Fixed lvalue cast that wasn't approved by newer GCC.
343 2004-05-10 Mikael Hallendal <micke@imendio.com>
345 * configure.in: Enable Mono on request
348 - Updated the bindings some.
349 - Removed the autogenerated, it's such a small API that I figured
350 it was easier to wrap it manually.
352 2004-04-30 Mikael Hallendal <micke@imendio.com>
354 * loudmouth/lm-parser.c (parser_end_node_cb): Unref the message node.
356 2004-04-29 Mikael Hallendal <micke@imendio.com>
358 * examples/lm-change-password.c:
359 * examples/Makefile.am:
360 - Added a small tool to change the password on a jabber account.
362 2004-04-27 Mikael Hallendal <micke@imendio.com>
364 * Ignore on autogenerated files.
366 2004-04-20 Mikael Hallendal <micke@imendio.com>
368 * loudmouth/*.[ch]: Updated copyright information
370 2004-04-20 Mikael Hallendal <micke@imendio.com>
372 * configure.in: Now depend on Glib 2.4
373 * loudmouth/lm-queue.[ch]: Removed, use the new GQueue in Glib 2.4
374 * loudmouth/lm-connection.[ch]: Use GQueue instead of LmQueue.
376 2004-04-16 Mikael Hallendal <micke@imendio.com>
378 * configure.in: Added libtasn1 requirement
379 * loudmouth.spec.in: Added requirement on libtasn if built with SSL.
381 2004-04-04 Mikael Hallendal <micke@imendio.com>
383 * loudmouth/lm-sha.c: Commited compile fix from Sjoerd.
385 2004-03-20 Mikael Hallendal <micke@imendio.com>
387 * docs/reference/loudmouth-sections.txt:
388 - Added lm_connection_get_state
389 - Added LmConnectionState
391 2004-03-17 Mikael Hallendal <micke@imendio.com>
397 * configure.in: Bumped to 0.16
398 * NEWS: Updated for 0.16
400 2004-03-17 Mikael Hallendal <micke@imendio.com>
402 * docs/reference/*: Updated documentation.
403 * loudmouth/*: Fixed the documentation in a couple of places.
405 2004-03-17 Mikael Hallendal <micke@imendio.com>
407 * loudmouth/lm-connection.[ch]
408 (lm_connection_new_with_context):
409 - Added to be able to give what context the connection should be
411 - All internal functions are updated to use the context or NULL if
412 lm_connection_new was called.
413 - Should make it possible to use several LmConnections in various
416 2004-03-17 Mikael Hallendal <micke@imendio.com>
418 * loudmouth/lm-connection.c:
419 * loudmouth/lm-internal.h:
420 * loudmouth/lm-proxy.c:
421 - Make the HTTP proxy support asynchronous. Patch from Josh Beam.
422 - Re-enable the HTTP proxy support.
423 * examples/lm-send-sync.c:
424 * examples/lm-send-async.c:
425 * examples/test-http-proxy.c:
426 - Added two of the old examples and a new one to test out the HTTP
429 2004-03-17 Mikael Hallendal <micke@imendio.com>
431 * configure.in: Generate examples/Makefile
432 * loudmouth/test-jid.c: Removed
433 * loudmouth/test-lm.c: Moved to examples/
434 * exmples/*: Moved out from loudmouth/
436 2004-02-05 Mikael Hallendal <micke@imendio.com>
438 * README: Updated information about website and bug reporting
440 2004-01-29 Richard Hult <richard@imendio.com>
442 * loudmouth/lm-message-node.c: (lm_message_node_to_string):
443 * loudmouth/lm-message.c: (lm_message_new):
444 (lm_message_new_with_sub_type), (lm_message_unref):
445 - Plug leaks and fix two small coding style issues.
447 2004-01-23 Mikael Hallendal <micke@imendio.com>
455 2004-01-22 Frederic Crozat <fcrozat@mandrakesoft.com>
458 * loudmouth/lm-ssl.c: (ssl_verify_certificate):
459 Don't use deprecated function of gnutls.
460 Now requires gnutls >= 1.0.0
462 2004-01-21 Mikael Hallendal <micke@imendio.com>
466 2004-01-21 Mikael Hallendal <micke@imendio.com>
470 - Removed the mono bindings for now.
472 2004-01-21 Richard Hult <richard@imendio.com>
475 - The library changed name, update to libloudmouth-1.la.
477 2004-01-21 Mikael Hallendal <micke@imendio.com>
479 * docs/reference/tmpl/lm-ssl.sgml:
480 * loudmouth/lm-ssl.c:
481 - Added API documentation
483 2004-01-21 Mikael Hallendal <micke@imendio.com>
485 * docs/reference/loudmouth-docs.sgml:
486 * docs/reference/loudmouth-sections.txt:
487 * docs/reference/tmpl/lm-connection.sgml:
488 * docs/reference/tmpl/loudmouth-unused.sgml:
489 * docs/reference/tmpl/lm-ssl.sgml:
490 * loudmouth/lm-ssl.h:
491 - Added new file to documentation
493 2004-01-21 Mikael Hallendal <micke@imendio.com>
496 * configure.in: Work on the C# bindings
497 * NEWS: Preparing for 0.15
498 * loudmouth-1.0.pc.in: Versioned the library
499 * loudmouth/Makefile.am: ditto
500 * loudmouth/lm-connection.c:
501 * loudmouth/lm-connection.h: Disabled the proxy support.
504 * mono/loudmouth/Makefile.am:
505 * mono/loudmouth/loudmouth-api.xml:
506 * mono/loudmouth/loudmouth.metadata:
507 * mono/sources/loudmouth-sources.xml:
508 - WIP on the bindings, first cut of generated bindings.
510 2004-01-16 Mikael Hallendal <micke@imendio.com>
512 * loudmouth/lm-connection.c:
513 (connection_failed_with_error),
514 (connection_connect_cb):
515 (connection_do_connect):
516 - Don't fall through after calling connection_failed.
519 2004-01-15 Mikael Hallendal <micke@imendio.com>
521 * loudmouth/Makefile.am:
523 * loudmouth/lm-connection.c:
524 * loudmouth/lm-connection.h:
525 - Splitted out the SSL parts
526 - No longer contains loads of #ifdefs around tls parts
527 - Added lm_connection_[set|get]_ssl instead.
528 * loudmouth/lm-internals.h:
530 * loudmouth/lm-ssl.c:
531 * loudmouth/lm-ssl.h:
532 - New files, the SSL parts from LmConnection.
533 - Declares no-ops for SSL functions if compiled without support for it.
534 * loudmouth/test-lm.c:
535 - Updated for new SSL API.
537 2004-01-15 Mikael Hallendal <micke@imendio.com>
539 * loudmouth/lm-connection.c:
540 - Added Sjoerd Simons to copyright list.
542 2004-01-15 Mikael Hallendal <micke@imendio.com>
544 * loudmouth/Makefile.am:
545 - Added lm-proxy.[ch]
546 * loudmouth/lm-connection.c:
547 * loudmouth/lm-connection.h:
548 - Commited patch from Sjoerd Simons to make async connect work better.
549 - Cleaned out the proxy support to it's own file.
550 - Made sure all public functions user g_return_(val)_if_fail.
551 * loudmouth/lm-internals.h:
552 - cleaned up a bit and added proxy function and base64 encoding
553 * loudmouth/lm-message-handler.c:
555 * loudmouth/lm-proxy.c:
556 * loudmouth/lm-proxy.h:
557 - Added, broken out of LmConnection
558 - Commited patch from Josh Beam
559 * loudmouth/lm-utils.c:
560 (_lm_utils_base64_encode): Added.
562 2004-01-08 Richard Hult <richard@imendio.com>
564 * loudmouth/lm-connection.c (connection_timeout_check_open):
567 * acinclude.m4: Add gmtoff check.
569 * loudmouth/lm-utils.c (lm_utils_get_localtime): Use tm_gmtoff if
572 2004-01-06 Mikael Hallendal <micke@imendio.com>
574 * loudmouth/lm-connection.c:
575 - Now works with sync open again.
576 * loudmouth/lm-utils.c: (_lm_utils_free_callback):
579 2004-01-05 Mikael Hallendal <micke@imendio.com>
581 * loudmouth/lm-connection.c:
582 - Work in progress of making the lm_connection_open really async.
583 - Currently broken for lm_connection_open_block.
585 2003-12-27 Mikael Hallendal <micke@imendio.com>
587 * loudmouth/lm-connection.[ch]:
588 (connection_verify_certificate),
589 (connection_do_open),
590 (connection_do_close),
591 (connection_in_event),
593 (lm_connection_new): Updated to not pass SSL function everywhere.
594 (lm_connection_open): Removed the _ssl function
595 (lm_connection_open_and_block): Removed the _ssl function
596 (lm_connection_set_use_ssl): Added, set LmSSLFunction here instead.
597 (lm_connection_get_use_ssl): Internal update
599 2003-12-27 Mikael Hallendal <micke@imendio.com>
601 * docs/reference/tmpl/lm-error.sgml:
602 * loudmouth/lm-connection.c:
603 * loudmouth/lm-connection.h:
604 (connection_connect_nonblocking),
605 (connection_do_open),
606 (connection_http_proxy_negotiate),
608 (lm_connection_get_proxy_type),
609 (lm_connection_set_proxy_type),
610 (lm_connection_get_proxy_server),
611 (lm_connection_set_proxy_server),
612 (lm_connection_get_proxy_port),
613 (lm_connection_set_proxy_port):
614 - Add support for HTTP proxy
615 - Patch from Josh Beam <josh@3ddrome.com>
616 - Needed changes to Loudmouth to fix bug #117757 in Gossip.
618 2003-12-19 Mikael Hallendal <micke@imendio.com>
620 * loudmouth/lm-connection.c:
621 (connection_free): cleaned up a bit.
622 (connection_connect_nonblocking): added, nonblocking connect
623 (connection_do_open):
624 - Use the nonblocking connect
626 (connection_do_close): cleaned up
627 (connection_auth_reply): set state
628 (lm_connection_cancel_open): added
629 (lm_connection_authenticate): set state
630 (lm_connection_is_open): use state
631 (lm_connection_is_authenticated): use state
632 (lm_connection_get_state): added
633 - Part fixes bug #122326
635 2003-12-15 Mikael Hallendal <micke@imendio.com>
637 * README: Updated information about bug reporting
639 2003-12-15 Mikael Hallendal <micke@imendio.com>
641 * loudmouth/lm-connection.c:
642 - Fixed issue with the SSL parts. Patch from Colin Walters
644 2003-11-20 Ross Burton <ross@burtonini.com>
646 * loudmouth/lm-message-node.h:
647 - Mark the private members how gtk-doc wants it.
649 * loudmouth/lm-message-node.c:
650 - Fix comment typos and document more parameters.
652 * loudmouth/lm-connection.c: Fix comment typos.
654 * docs/reference/loudmouth-sections.txt:
655 - Removed a non-existent function.
657 * docs/reference/tmpl/lm-connection.sgml: Fix some typos.
659 * docs/reference/tmpl/lm-message-node.sgml:
660 - Document raw_node, and remove private fields.
662 * docs/reference/tmpl/lm-message.sgml: gtk-doc did this itself...
664 2003-11-16 Mikael Hallendal <micke@imendio.com>
666 * loudmouth/lm-connection.c:
667 (lm_connection_new): Don't create and attach source here
668 (lm_connection_open): Do it here,
669 (lm_connection_open_and_block): and here. Fixes #126983.
671 2003-11-11 Mikael Hallendal <micke@imendio.com>
673 * loudmouth/lm-connection.c:
674 (connection_do_close): Remove the incoming source. Reported and fix
675 proposed by Christopher G. Abiad
676 (lm_connection_authenticate_and_block):
677 - Set error message on auth failed (should be more explicit). Fixes
678 problem when you try to read the error message on fail.
680 2003-11-11 Mikael Hallendal <micke@imendio.com>
683 - Added README.WIN32 so it will be distributed next release.
685 2003-10-13 Mikael Hallendal <micke@imendio.com>
687 * configure.in: Bumped version to 0.14.1.99
689 * loudmouth/lm-message.c:
690 (lm_message_new): Always set an ID on the message.
692 2003-10-13 Mikael Hallendal <micke@imendio.com>
694 * mono/*: Added first cut at C-sharp bindings that I hacked up a while
695 ago. Can't continue development at the moment since the mono compiler
696 segfaults on my machine at the moment.
698 * python/*: Johan Dahlin added a first cut of python bindings, yay him!
700 2003-10-13 Mikael Hallendal <micke@imendio.com>
702 * NEWS: Updated for 0.14.1
704 * configure.in: Bumped to 0.14.1
706 * loudmouth/lm-connection.c: (connection_in_event): check if bytes_read
707 equals GNUTLS_E_AGAIN, fixes crash. Patch by Marinus Schraal.
709 2003-10-03 Mikael Hallendal <micke@imendio.com>
713 * NEWS: Updated for 0.14
715 * configure.in: Bumped to 0.14
717 2003-10-02 Mikael Hallendal <micke@imendio.com>
719 * loudmouth/lm-connection.c: (connection_free):
720 - Free the message handlers and message handler list when free'ing
723 2003-10-01 Mikael Hallendal <micke@imendio.com>
725 * configure.in: Tweaked the --with-ssl option a bit.
728 - Added a with_ssl to be able to easily turn of GNU Tls support.
731 2003-10-01 Mikael Hallendal <micke@imendio.com>
733 * loudmouth/lm-connection.c: (connection_do_open):
734 - Added a patch for IPv6-support submitted by Sjoerd Simons.
735 - Sjoerd also seems to know this stuff better than me since his
736 connection code looked more sane than mine. Thanks alot!
738 2003-10-01 Mikael Hallendal <micke@imendio.com>
740 * loudmouth/Makefile.am:
741 - added lm-queue.[ch]
743 * loudmouth/lm-queue.[ch]: copied and extended from GQueue.
745 * loudmouth/lm-connection.c:
746 - Use LmQueue instead of GQueue
747 (lm_connection_open_and_block): Better handling of the queue.
749 (lm_connection_send_with_reply_and_block):
750 - Fixed a bug causing replies to be over looked.
752 2003-10-01 Mikael Hallendal <micke@imendio.com>
754 * README.WIN32, win32-config.h:
755 - Added information about how to build on Windows. Fixes LM-12
757 2003-08-24 Martyn Russell <ginxd@btopenworld.com>
759 * loudmouth/lm-connection.c:
760 (connection_in_event): Use an int for bytes_read. Since bytes_read is
761 now also used for gnutls return value (which can be < 0) a gsize
762 (unsigned) is not a good idea...
764 2003-08-15 Mikael Hallendal <micke@imendio.com>
768 * configure.in: Bumped to 0.13.2
769 * NEWS: Updated for 0.13.2
771 * loudmouth/lm-parser.c: (parser_end_node_cb):
772 - Don't crash on </stream:stream>. Fixes bug #117952
774 2003-08-05 Mikael Hallendal <micke@imendio.com>
778 * NEWS: Updated for 0.13.1
779 * configure.in: Bumped to 0.13.1
781 2003-08-05 Mikael Hallendal <micke@imendio.com>
783 * acinclude.m4: Added GnuTLS-macro from GnuTLS-distribution.
785 * configure.in: Added comment if SSL support disabled.
787 * loudmouth.spec.in: Added Build-requirment on gtk-doc.
791 * NEWS: Updated for 0.13
792 * configure.in: Bumped to 0.13
794 2003-08-04 Mikael Hallendal <micke@imendio.com>
797 - Added comment about GnuTLS and --with-included-libtasn1.
798 - Fixes LM-7 and bug #117801
800 2003-08-04 Mikael Hallendal <micke@imendio.com>
802 * loudmouth/lm-connection.c: (connection_in_event):
803 - Disconnect and report that we are disconnected if read doesn't work.
804 This solved the problem when Gossip eats 100% CPU because the server
805 got disconnected. Fixes LM-9.
807 * loudmouth/Makefile.am: Use -DRUNTIME_ENDIAN, fixes LM-8, bug #118502.
809 * loudmouth/lm-connection.c:
810 - Modifed patch from Mikhail Zabaluev, fixes LM-5.
811 * (connection_free): close connection if it's still open.
812 * (connection_do_open): Store away the GSource handlers.
813 * (connection_do_close): Remove the GSources from the IOChannel.
814 * (connection_in_event, connection_error_event, connection_hup_event):
815 - Return FALSE if io_channel = NULL.
818 - Submitted patch for Loudmouth from Mikhail Zabaluev to
819 make configure.in use the aclocal-stuff from gnutls instead of
820 selfmade hack. Fixes LM-6.
822 2003-07-29 Mikael Hallendal <micke@imendio.com>
824 * loudmouth/lm-message.[ch]:
825 - Added LM_MESSAGE_SUB_TYPE_NORMAL to be a sub type that can actually
827 - If type is not set in a <message/>-node it won't be reported to be
828 LM_MESSAGE_SUB_TYPE_NORMAL but rather LM_MESSAGE_SUB_TYPE_NOT_SET.
830 2003-07-17 Mikael Hallendal <micke@imendio.com>
834 * NEWS: Updated for 0.12
835 * configure.in: Bumped to 0.12
837 2003-07-17 Mikael Hallendal <micke@imendio.com>
839 * loudmouth/lm-connection.c:
840 (auth_req_data_free): Added, free's auth data
841 (connection_create_auth_req_msg):
842 - Added, generates an auth request message
843 (connection_create_auth_msg):
844 - Added, generates an auth message
845 (connection_auth_req_reply): Added
846 (connection_check_auth_type): Added
847 (lm_connection_authenticate): Modified
848 (lm_connection_authenticate_and_block): Modified
851 2003-07-17 Mikael Hallendal <micke@imendio.com>
853 * configure.in: Added GNUTLS_REQUIRED
854 * loudmouth.spec.in: Added gnutls dependency in RPM's.
856 2003-07-17 Mikael Hallendal <micke@imendio.com>
858 * docs/reference/loudmouth-sections.txt: Added new functions
859 * docs/reference/tmpl/lm-error.sgml: Documented undocumented references.
860 * docs/reference/tmpl/lm-message-handler.sgml: Same.
861 * docs/reference/tmpl/loudmouth-unused.sgml: Same
862 * loudmouth/lm-debug.c: Same
864 * loudmouth/lm-message-handler.c:
865 * loudmouth/lm-message-handler.h:
866 (_lm_message_handler_handle_message):
867 - Check if handler is valid before trying to handle message.
868 (lm_message_handler_new): Set handler to be valid.
869 (lm_message_handler_invalidate): Added. Fixes cf-bug #677
870 (lm_message_handler_is_valid): Added
872 2003-07-14 Mikael Hallendal <micke@imendio.com>
876 * configure.in: Bumped to 0.11
877 * NEWS: Updated for 0.11
879 2003-07-12 Mikael Hallendal <micke@imendio.com>
882 - Added SSL support, patch from Bartosz Zapalowski. THIS GUY ROCKS!
883 * docs/reference/loudmouth-sections.txt:
884 - added lm_connection_supports_ssl.
885 * loudmouth/lm-connection.c: Added support for SSL.
886 * loudmouth/test-lm.c: (main): Use SSL if it's compiled in.
888 2003-07-07 Mikael Hallendal <micke@imendio.com>
892 * NEWS: Updated for 0.10.1
893 * configure.in: Bumped version to 0.10.1
895 2003-07-07 Mikael Hallendal <micke@imendio.com>
897 * loudmouth/lm-connection.c: moved the includes around a bit so that
898 it builds on FreeBSD without problems.
900 2003-06-26 Mikael Hallendal <micke@imendio.com>
903 * configure.in: Changed version to 0.10
904 * NEWS: Added 0.10 news.
906 2003-06-25 Mikael Hallendal <micke@imendio.com>
908 * configure.in: Bumped to 0.9.1
909 * loudmouth.spec.in: Changed the URL to the project site.
911 2003-06-24 Mikael Hallendal <micke@imendio.com>
913 * loudmouth/lm-connection.c:
914 * loudmouth/lm-sha.c:
915 * loudmouth/test-lm.c:
916 - Submitted patch that makes Loudmouth work and build on Win32.
917 Patch sent by Vince Negri, thanks a lot.
919 2003-06-15 Mikael Hallendal <micke@imendio.com>
921 * loudmouth/lm-message.c:
922 * loudmouth/lm-message.h:
923 (lm_message_get_sub_type): Return LmMessageSubType.
924 Found by Alexander Saltanov
926 2003-06-13 Mikael Hallendal <micke@imendio.com>
928 * AUTHORS: updated contact information
929 * README: updated contact information
930 * loudmouth/*.[ch]: updated email address
931 * loudmouth/lm-message-node.c: don't lower case the XML
932 * loudmouth/lm-message.c:
933 (message_type_from_string): use strcmp rather than strcasecmp
934 * loudmouth/lm-parser.c:
935 (parser_start_node_cb),
936 (parser_end_node_cb),
937 (lm_parser_new): use strcmp instead of strcasecmp
939 2003-06-11 Mikael Hallendal <micke@codefactory.se>
941 * docs/reference/loudmouth-sections.txt: Added new functions
943 * loudmouth/lm-message-node.c:
944 (_lm_message_node_new): Set node->raw_mode = FALSE.
945 (lm_message_node_get_raw_mode): Added
946 (lm_message_node_set_raw_mode): Added
947 (lm_message_node_to_string): Don't escape if raw_mode == TRUE
949 * loudmouth/lm-message-node.h: Added new functions.
951 2003-04-26 Mikael Hallendal <micke@codefactory.se>
953 * loudmouth.spec.in: Enable gtk-doc
957 2003-04-17 Mikael Hallendal <micke@codefactory.se>
959 * docs/reference/Makefile.am: Make --disable-gtk-doc not try to
960 install the documents :) Fixes #633, patch by Kevin Dougherty.
962 * loudmouth/lm-debug.c: Make build work with --disable-debug,
963 fixes #634, patch by Kevin Dougherty.
965 2003-04-11 Mikael Hallendal <micke@codefactory.se>
969 * configure.in: Bumped version to 0.9
971 * loudmouth.spec.in: Fixed
973 * loudmouth/lm-connection.c:
974 (lm_connection_send_with_reply_and_block): Removed debug output.
976 2003-04-10 Mikael Hallendal <micke@codefactory.se>
978 * NEWS: Updated for upcoming 0.9 release.
980 2003-04-07 Mikael Hallendal <micke@codefactory.se>
982 * README: Added information about debug output.
984 * loudmouth/lm-connection.c:
985 (connection_in_event): Use a define for IN_BUFFER_SIZE
987 2003-04-07 Mikael Hallendal <micke@codefactory.se>
990 * loudmouth/lm-connection.c: (connection_in_event):
992 2003-04-07 Mikael Hallendal <micke@codefactory.se>
996 * loudmouth/Makefile.am:
997 - Added lm-debug.[ch]
998 * loudmouth/lm-internals.h: Added debug-stuff
999 * loudmouth/lm-connection.c: Use debug-stuff instead of d()-macro.
1000 * loudmouth/lm-message.c: Same
1001 * loudmouth/lm-parser.c: Same
1003 2003-04-05 Mikael Hallendal <micke@codefactory.se>
1005 * Makefile.am: Added .spec and .spec.in to EXTRA_DIST
1006 * configure.in: Set GLIB2_REQUIRED, will be used in the spec-file.
1007 * loudmouth/lm-message.c:
1008 * loudmouth/lm-message.h:
1009 - fixed the support for message and presence elements without type
1012 2003-04-01 Mikael Hallendal <micke@codefactory.se>
1014 * loudmouth/lm-message.c:
1015 (lm_message_get_node): added, using for bindings.
1017 * loudmouth/lm-message-node.c:
1018 (lm_message_node_get_value): added, makes binding easier.
1019 (lm_message_node_set_attribute): splitted out to just set one
1020 attribute. using just this one to bind for C#.
1022 2003-03-24 Mikael Hallendal <micke@codefactory.se>
1024 * loudmouth/lm-connection.c:
1025 (connection_incoming_dispatch):
1026 - don't call handle_message if message is NULL.
1027 (connection_do_open):
1028 - set error, don't send any messages, just open the socket and
1029 send the xml-document starter.
1030 (connection_do_block): Removed.
1031 (connection_create_source): added
1032 (lm_connection_open_and_block): implemented.
1033 (lm_connection_authenticate_and_block): implemented.
1034 (lm_connection_send_with_reply_and_block): implemented.
1036 2003-03-23 Mikael Hallendal <micke@codefactory.se>
1038 * loudmouth/lm-connection.c:
1039 - Now uses a queue for all incoming messages and a source that
1041 (connection_do_close): added, unrefs
1042 io_channel and sets connection to be disconnected.
1043 (connection_do_open): renamed from connection_connect
1045 2003-03-14 Mikael Hallendal <micke@codefactory.se>
1047 * loudmouth/lm-connection.c:
1048 (lm_connection_get_server): added
1049 (lm_connection_set_server): added
1050 (lm_connection_get_port): added
1051 (lm_connection_set_port): added
1052 (lm_connection_get_use_ssl): added
1053 (lm_connection_set_use_ssl): added
1054 (lm_connection_new): Don't take port and use_ssl arguments. Make
1055 server-attribute optional (passing NULL).
1057 * configure.in: bumped to 0.8.99
1059 2003-03-13 Mikael Hallendal <micke@codefactory.se>
1061 * autogen.sh (need_configure_in):
1062 - fix to autogen on solaris. Reported by stric.
1065 - Added check for -lnsl and -lsocket needed to link on solaris.
1069 * configure.in: bumped version to 0.8
1071 * README (Introduction): added some information before the 0.8
1074 * loudmouth/lm-connection.c:
1075 (connection_error_event): call disconnect callback.
1076 (connection_hup_event): same.
1077 (lm_connection_set_disconnect_function): added.
1079 2003-03-05 Mikael Hallendal <micke@codefactory.se>
1081 * loudmouth/*.h: prettified headers.
1083 * docs/reference/*: Updating docs. Now at 100%!
1085 2003-03-03 Mikael Hallendal <micke@codefactory.se>
1087 * loudmouth/lm-message-node.h:
1088 - removed LmMessageNodeFunc, wasn't used anywhere.
1090 * docs/reference/*: Updating docs. At 88% now... sooon!
1092 * Changed license (again), this time back to LGPL. And it'll stay
1095 2003-02-27 Mikael Hallendal <micke@codefactory.se>
1097 * Worked alot on documenting.
1099 2003-02-25 Mikael Hallendal <micke@codefactory.se>
1101 * loudmouth/lm-connection.c (connection_in_event):
1104 2003-02-24 Mikael Hallendal <micke@codefactory.se>
1106 * loudmouth/lm-sha.c: don't use stdint.h, instead use the g*
1107 versions of different int lengths. Fixes #536
1109 2003-02-08 Mikael Hallendal <micke@codefactory.se>
1111 * src/*.c: Started to document
1113 * src/lm-result.h: Removed
1115 * src/lm-error.[ch]: Added
1117 * src/lm-connection.[ch]:
1118 - Use GErrors for reporting errors.
1121 * docs/reference/Makefile.am: Don't link against GObject.
1123 2003-02-06 Mikael Hallendal <micke@codefactory.se>
1125 * loudmouth/lm-connection.c (connection_connect): send the opening
1126 xml tag stating that we'll use encoding utf-8.
1128 2003-02-02 Mikael Hallendal <micke@codefactory.se>
1130 * loudmouth/lm-message.c:
1132 (lm_message_new): take to-argument
1133 (lm_message_new_with_sub_type): take to-argument
1135 * loudmouth/test-lm.c (main): don't init GType, not used anymore..
1137 * lm-message-handler.c:
1138 - include files we actually need :)
1140 * loudmouth/lm-connection.c: don't include removed files.
1142 * loudmouth/Makefile.am:
1143 - Removed all the stuff that generated the marshallers.
1146 - removed gobject deps
1147 - removed glib-genmarshal deps
1149 * loudmouth-1.0.pc.in (Requires): removed all deps except glib.
1151 * loudmouth/lm-connection.c:
1152 - Is no more a GObject, this means that loudmouth now only depends
1153 on GLib which makes it minimal and perfect for embedded systems.
1155 * configure.in: Don't require libgtcpsocket
1157 * loudmouth/lm-connection.c: Don't use libgtcpsocket for
1158 communication. Now uses a GIOChannel.
1161 - Use GDestroyNotify instead of LmFreeFunction.
1162 - Added LmCallback which is a struct with callback,
1163 user_data and a notify function.
1164 - Changed LmConnectionOpenFunction and LmAuthenticateFunction to
1165 be LmResultFunction.
1167 2003-02-01 Mikael Hallendal <micke@codefactory.se>
1169 * loudmouth/lm-sha.c (lm_sha_hash): don't print the digest.
1171 2003-01-31 Mikael Hallendal <micke@codefactory.se>
1173 * *: changed the license to the same one used in RoadRunner.
1175 * loudmouth/lm-sha.c:
1176 - switched the SHA implementation for one with BSD license.
1178 * loudmouth/lm-connection.c (lm_connection_authenticate):
1179 - lm_sha_hash now returns a const gchar *
1182 2003-01-30 Mikael Hallendal <micke@codefactory.se>
1184 * docs/*: Added gtk-doc support. Now I just have to write API docs
1187 * loudmouth/lm-helper.[ch]: Removed.
1189 2003-01-30 Mikael Hallendal <micke@codefactory.se>
1191 * loudmouth/lm-message-node.c:
1192 (lm_message_node_to_string): made public since it's really useful
1193 for debugging your client.
1194 (lm_message_node_find_child): readded this function from the old
1195 LmNode. It traverses the tree to see if it can find the child
1196 and returns at the first it finds. lm_message_node_get_child
1197 only looks at the direct children.
1199 2003-01-29 Mikael Hallendal <micke@codefactory.se>
1201 * loudmouth/lm-connection.c:
1202 (lm_connection_send): don't set ID here. we set it in
1203 send_with_reply if it's not set (since it's needed there to find
1204 the correct handler).
1205 (connection_connection_recv_cb):
1206 - not sure if this helps any, return if length <= 0 instead of
1207 feeding it to the parser.
1209 * loudmouth/lm-message.[ch]:
1210 - Added LmMessageSubType that can be used to set and check a
1211 message's sub type <node type="sub type">.
1212 (message_sub_type_from_string): added
1213 (message_sub_type_to_string): added
1214 (lm_message_new_with_sub_type): added
1215 (lm_message_get_sub_type): added
1217 * loudmouth/lm-message-node.c (lm_message_node_get_child):
1218 - remove variable that caused warning.
1220 * configure.in: updated version to 0.2
1222 2003-01-27 Mikael Hallendal <micke@codefactory.se>
1225 - LmClient -> LmConnection
1226 - Use Message Handlers on LmConnection instead of signals
1227 - LmElement, LmPresence and LmIQ removed
1228 - LmMessage used for all kinds of messages now
1229 - LmMessageHandler added as a generic message handler for all
1231 - send_with_reply added to give a callback when waiting for an
1232 answer to a request.
1233 - LmResult added to most calls. Used to get some feedback on what
1234 might have gone wrong.
1236 2003-01-27 Anders Carlsson <andersca@codefactory.se>
1238 * autogen.sh (FILE): Use lm-message.c for testing.
1240 2003-01-26 Mikael Hallendal <micke@codefactory.se>
1242 * loudmouth/*: Added lm-helper which will create elements to send
1245 2003-01-25 Mikael Hallendal <micke@codefactory.se>
1247 * loudmouth/lm-marshal.list (VOID): cleaned up old marshallers.
1249 * loudmouth/lm-element.c (lm_element_get_type_string): added.
1251 * loudmouth/lm-client.c:
1252 - Changed message, presence and iq received back into signals
1253 - Added default handlers to class
1254 - Calling default handlers only if none of the connected callbacks
1257 2003-01-21 Mikael Hallendal <micke@codefactory.se>
1259 * configure.in: don't use libgtcpsocket 1.0, use 0.1.0
1261 2002-12-10 Mikael Hallendal <micke@codefactory.se>
1263 * loudmouth/lm-util.c:
1264 (lm_util_get_localtime): Added
1265 (lm_util_case_strstr): Removed
1267 * loudmouth/lm-x.h: Removed.
1269 * loudmouth/lm-element.c:
1270 - Added support for an iter for iterating over all x elements.
1271 - Needed to resolve #347
1272 (lm_element_get_x_iter): Added
1273 (lm_x_iter_next): Added
1274 (x_iter_next): Added
1275 (lm_x_iter_free): Added
1277 * loudmouth/Makefile.am (libloudmouthinclude_HEADERS):
1280 2002-12-03 Mikael Hallendal <micke@codefactory.se>
1282 * loudmouth/lm-presence.c:
1283 - Fixed show-array indexing, Fixes #341 and #342
1284 (lm_presence_set_show): don't set
1285 <show/> to "normal", just leave it out.
1286 (presence_show_from_string): don't strcmp for "normal".
1287 (presence_string_from_show): don't return "normal".
1289 2002-11-29 Richard Hult <rhult@codefactory.se>
1291 * loudmouth/lm-client.c (lm_client_subscribe_jid): Wrap g_print
1293 (lm_client_unsubscribe_jid): Likewise.
1294 (lm_client_connect): Add debug print.
1295 (client_connect_done_cb): Add debug print.
1297 * loudmouth/lm-element.c (lm_element_new): When creating a stream
1298 element, use "stream:stream" instead of just "stream". This fixes
1299 the "Invalid XML" error we were getting from the server at the end
1302 * loudmouth/lm-client.c (lm_client_authenticate): Don't free the
1303 digest, it's static memory. This fixes a couple of very weird
1305 (lm_client_disconnect): Revert the fix I did here earlier, we
1306 don't want to set is_connected until we really get a disconnect
1307 callback from the connection. The problem is somewhere else.
1308 (lm_client_send): Compare against </stream:stream> instead of just
1311 2002-11-29 Mikael Hallendal <micke@codefactory.se>
1313 * loudmouth/lm-node.c (node_free): don't free directly, use
1315 (lm_node_add_child_node): ref the child node.
1317 * loudmouth/lm-element.c:
1318 (lm_element_unref): implemented
1319 (lm_element_set_tree): ref the tree.
1321 2002-11-29 Mikael Hallendal <micke@codefactory.se>
1323 * loudmouth/lm-client.c: Changed default_foo_handler to
1326 2002-11-27 Richard Hult <rhult@codefactory.se>
1328 * loudmouth/lm-client.c (client_handle_iq): Fix warning by making
1331 2002-11-26 Richard Hult <rhult@codefactory.se>
1333 * loudmouth/lm-client.c (client_connection_closed_cb):
1334 - Set is_connected to FALSE.
1336 2002-11-26 Mikael Hallendal <micke@codefactory.se>
1338 * loudmouth/*: Changed so that LmElement and subclasses are no
1339 longer objects. Just structs. You need to use get/set-functions
1340 instead of properties.
1342 2002-11-25 Mikael Hallendal <micke@codefactory.se>
1344 * loudmouth/lm-element.c (element_get_property): fixed error
1345 causing object_get ("from") trying to get "to" value.
1347 2002-11-24 Richard Hult <rhult@codefactory.se>
1349 * loudmouth/lm-client.c (client_handle_presence):
1350 - Try to implement subscription requests.
1352 * loudmouth/test-lm.c (main): Fix more callback types.
1354 * loudmouth/lm-client.h:
1355 - Remove lm_client_set_subscription_request_handler, unused.
1357 * loudmouth/test-lm.c (main): Don't cast callbacks with (Type*).
1359 * loudmouth/lm-client.c:
1360 - Change function prototypes from *callback to callback.
1362 * loudmouth/lm-client.h: Remove signal entry from object struct
1363 and change function prototypes to match the definitions.
1365 2002-11-23 Richard Hult <rhult@codefactory.se>
1367 * loudmouth/lm-client.h: Add lm_client_get_agents.
1369 * configure.in: Add compiler warnings logic but leave it disabled
1370 since the sha stuff is not very warning free.
1372 * loudmouth/lm-node.c (lm_node_get_string): Escape the body string
1373 so we generate valid xml when sending things like '<', '>', and
1376 2002-11-23 Mikael Hallendal <micke@codefactory.se>
1378 * loudmouth/lm-node.c (lm_node_unlink): added
1380 * loudmouth/lm-presence.c (presence_set_property): don't set
1383 * loudmouth/lm-iq.c:
1384 (lm_iq_get_query_node):
1385 (lm_iq_set_query_node): removed, use lm_element_find_child and
1386 lm_element_add_child_node instead.
1388 * loudmouth/lm-element.c:
1389 (lm_element_add_child): added :)
1390 (lm_element_find_child): added
1392 * loudmouth/lm-client.c (client_connection_closed_cb): call
1393 disconnect callback.
1395 * loudmouth/lm-sha.[ch]: added, found in jabberd2, remember to
1396 check license issues with this.
1398 * loudmouth/lm-client.c:
1399 (lm_client_authenticate): use digest for sending password instead
1402 * loudmouth/lm-client.c:
1403 (client_handle_iq): handle register reply
1404 (lm_client_register): added
1405 (lm_client_authenticate): moved stuff from iq-helper, easy enough
1406 now with the changes earlier today.
1408 * loudmouth/lm-iq-helper.[ch]: removed, not needed anymore.
1410 * loudmouth/lm-element.c (lm_element_add_child_node): added, this
1411 can be used to add any node to any element.
1413 * loudmouth/lm-presence.c (presence_set_property): priority is an
1416 * loudmouth/lm-node.c (lm_node_add_child_node): rethinking, don't
1419 2002-11-22 Mikael Hallendal <micke@codefactory.se>
1421 * loudmouth/lm-node.c:
1422 (lm_node_add_child): changed to take a name
1423 and a value, very handy when adding key/value pair nodes.
1424 (lm_node_add_child_node): added a _node to the old
1425 lm_node_add_child. Also ref's the child so the user should unref
1426 it after he's finished with it.
1428 * loudmouth/lm-iq.c (lm_iq_new): take the type as argument.
1430 * loudmouth/lm-client.c: added a default iq handler attribute and
1431 use it in handle_iq if the incoming IQ isn't handled by the
1432 library. This way a user of the library can now do anything with
1433 it, even use it's own namespaces and such.
1435 * loudmouth/*: Changes LmXMLNode -> LmNode
1438 - Using LmXMLNode internally in all elements
1439 - Use lm_message_new, lm_iq_new, lm_presence new instead of
1442 * loudmouth/lm-presence.c:
1443 (presence_get_xml_string): set to='' if it exists
1445 * loudmouth/lm-xml-node.c:
1446 (lm_xml_node_ref): added
1447 (lm_xml_node_unref): added
1448 (lm_xml_node_free): made private
1450 * loudmouth/lm-parser.c:
1451 (parser_end_element_cb): just unref the node, don't free it.
1453 * loudmouth/lm-client.c:
1454 - added "name", "version" and "os" proprties.
1455 (lm_client_register_default_message_handler):
1456 (lm_client_register_default_presence_handler): removed, unused
1458 * loudmouth/lm-element.[ch]:
1459 (lm_element_get_tree): Added, returns the XML tree for the
1461 (ilm_element_setup_from_xml): ref the node.
1463 2002-11-20 Richard Hult <rhult@codefactory.se>
1465 * loudmouth/lm-parser.c (lm_parser_parse): Try to convert the xml
1466 input to from ISO-8859-1 to UTF-8 if it's not valid UTF-8. Not
1467 the perfect fix but it makes a common case work.
1469 2002-11-16 Mikael Hallendal <micke@codefactory.se>
1471 * loudmouth/lm-client.c (lm_client_disconnect): send end of
1474 2002-11-15 Richard Hult <rhult@codefactory.se>
1476 * loudmouth/lm-roster.c (lm_roster_new_from_query_node): Get the
1477 group from the child of the query node.
1479 2002-11-15 Mikael Hallendal <micke@codefactory.se>
1481 * loudmouth/lm-client.c: no more signals. You now register message
1482 and presence handlers.
1484 * loudmouth/lm-presence.c (presence_get_property): implemented
1486 * loudmouth/lm-client.c:
1487 - removed the disconnected and connected signals. Now callbacks
1488 passed to lm_client_connect.
1490 2002-11-14 Mikael Hallendal <micke@codefactory.se>
1492 * loudmouth/lm-presence.c:
1493 (presence_class_init): type and show to be int's.
1494 (presence_set_property): same.
1496 * configure.in: bumped version to 0.1.1
1498 * loudmouth/lm-presence.c (lm_presence_set_status): added.
1500 * loudmouth/lm-element.c (element_class_init): not sure if we want
1501 this but readded the PROP_ERROR.
1503 * loudmouth/lm-client.c (lm_client_authenticate): silent warnings
1505 * loudmouth/lm-iq.c (iq_set_attribute): chain up.
1507 * loudmouth/lm-element.c (element_get_property): implement.
1509 * loudmouth/lm-client.c:
1510 - use callbacks for auth and roster instead of signals.
1511 (client_handle_iq): handle auth and roster
1512 (client_add_callback): added
1513 (client_find_callback): added
1514 (client_remove_callback): added
1515 (lm_client_send): take an extra id argument. If passed the message
1516 id will be copied to this argument.
1517 (lm_client_authenticate): take callback+userdata as arguments.
1518 (lm_client_request_roster): same
1520 2002-10-21 Richard Hult <rhult@codefactory.se>
1522 * loudmouth/lm-message.c (message_get_xml_string): Escape the
1523 body, fixes server disconnecting on messages containing <>.
1525 2002-10-02 Richard Hult <rhult@codefactory.se>
1527 * loudmouth/lm-xml-node.c (lm_xml_node_set_value): Don't run
1528 strdown on the node value.