31919e7c8dc05762aa3af56796bc9c9d6fb58645
[jelmer/loudmouth.git] / ChangeLog
1 2005-05-17  Mikael Hallendal  <micke@imendio.com>
2
3         * loudmouth/lm-ssl.c: 
4         * loudmouth/lm-connection.c:
5         * loudmouth/lm-proxy.c:
6         - Fixed some gcc 4.0 warnings.
7         * loudmouth/lm-ssl.[ch]: Made the API more consistent.
8         * examples/test-lm.c: Fixed some gcc 4.0 warnings.
9         
10 2005-05-13  Mikael Hallendal  <micke@imendio.com>
11
12         * loudmouth/lm-ssl.c: (_lm_ssl_read):
13         - Try to fix LM-3 for real this time.
14
15 2005-05-08  Mikael Hallendal  <micke@imendio.com>
16
17         * Release 0.90
18
19         * NEWS:
20         * configure.in:
21         - Updated for 0.90
22
23 2005-05-05  Mikael Hallendal  <micke@imendio.com>
24
25         * loudmouth/lm-connection.c: 
26         (_lm_connection_succeeded):
27         - Don't unref io_channel here as well, already done in do_close.
28         - Fixes LM-5, reported by Daniel Lavalliere.
29         (connection_do_close):
30         - Set fd to -1 to be sure it's not used again.
31
32 2005-05-05  Mikael Hallendal  <micke@imendio.com>
33
34         * loudmouth/lm-ssl.c: (_lm_ssl_read):
35         - Don't accidently return a negative bytes_read.
36         - Fixes LM-3, reported by Daniel Lavalliere.
37
38 2005-05-05  Mikael Hallendal  <micke@imendio.com>
39
40         * loudmouth/lm-connection.c: (connection_free):
41         - Unref LmSSL when freeing connection. Reported by Daniel Lavalliere.
42         - Fixes LM-4.
43
44 2005-04-24  Mikael Hallendal  <micke@imendio.com>
45
46         * loudmouth/lm-connection.c: (connection_free):
47         - Free the incoming message queue, reported by Daniel Lavalliere.
48
49 2005-04-24  Mikael Hallendal  <micke@imendio.com>
50
51         * loudmouth/lm-connection.c: (_lm_connection_succeeded),
52         (_lm_connection_failed_with_error), (connection_connect_cb),
53         (connection_do_connect), (connection_do_close):
54         - Disconnect from the connect io-watch when connect is done.
55         - Based on a patch from Daniel Lavalliere.
56
57 2005-04-18  Mikael Hallendal  <micke@imendio.com>
58
59         * loudmouth/lm-connection.c: (connection_free):
60         - Check if connection is opening as well and close it if it is.
61         - Fix suggested by Daniel Lavalliere.
62
63 2005-03-31  Mikael Hallendal  <micke@imendio.com>
64
65         * Makefile.am:
66         * CONTRIBUTORS: 
67         * loudmouth/lm-connection.c:
68         * loudmouth/lm-ssl.c:
69         - More release work. 
70         - Adding CONTRIBUTORS file.
71
72 2005-03-31  Mikael Hallendal  <micke@imendio.com>
73
74         * Makefile.am:
75         * configure.in:
76         - Removed the mono directory from the release tarball, never finished
77           and should probably be redone from scratch if to be done now.
78
79 2005-03-31  Mikael Hallendal  <micke@imendio.com>
80
81         * loudmouth/lm-debug.h: Correct log domain
82         * loudmouth/lm-ssl.c: (ssl_verify_certificate):
83         - Removed GNUTLS_CERT_NOT_TRUSTED which has been removed from GnuTLS.
84         - Patch from foser@gentoo.org
85
86 2005-02-02  Mikael Hallendal  <micke@imendio.com>
87
88         * examples/lm-change-password.c: (print_usage), (main):
89         - Support sending --host which would be the host part of the jid if
90           the connect server is different.
91
92 2005-01-27  Martyn Russell  <mr@gnome.org>
93
94         * loudmouth/lm-connection.c (_lm_connection_failed_with_error): 
95         - Added fix to call the open callback when all connection attempts
96         fail to the destination server.
97
98 2005-01-19  Mikael Hallendal  <micke@imendio.com>
99
100         * loudmouth/lm-connection.c: (connection_in_event):
101         * loudmouth/lm-ssl.c: (_lm_ssl_read):
102         - Seems GnuTLS returns a huge size as read bytes when the server is
103           disconnected. Check if returned read size is larger than asked for
104           if so, set the connection to be hung up.
105         - Fixes bug #164592
106
107 2004-11-08  Mikael Hallendal  <micke@imendio.com>
108
109         * examples/lm-change-password.c: Added SSL support
110         * examples/lm-register.c: Added SSL support
111
112 2004-10-31  Mikael Hallendal  <micke@imendio.com>
113
114         * Release 0.17.2
115
116         * NEWS: Updated for 0.17.2
117         * configure.in: Bumped version to 0.17.2
118
119 2004-10-30  Mikael Hallendal  <micke@imendio.com>
120
121         * loudmouth/lm-parser.c: (lm_parser_parse):
122         - Removed that hack to try to convert to utf8, the stream should be 
123           utf8 according to the Jabber specs. This hack caused a lot of weird
124           problems.
125         - Solves bug #154228
126
127 2004-10-22  Mikael Hallendal  <micke@imendio.com>
128
129         reviewed by: <delete if not using a buddy>
130
131         * loudmouth/lm-connection.h:
132         * loudmouth/lm-error.h:
133         * loudmouth/lm-message-handler.h:
134         * loudmouth/lm-message-node.h:
135         * loudmouth/lm-message.h:
136         * loudmouth/lm-proxy.h:
137         * loudmouth/lm-utils.h:
138         * loudmouth/lm-ssl.h:
139         - G_BEGIN_DECLS and G_END_DECLS
140         * loudmouth/loudmouth.h:
141         - Include lm-ssl.h
142
143 2004-10-08  Mikael Hallendal  <micke@imendio.com>
144
145         * loudmouth/lm-connection.c: (connection_new_message_cb):
146         - Fix crash on Solaris when running in verbose mode.
147
148 2004-10-05  Mikael Hallendal  <micke@imendio.com>
149
150         * examples/*.c
151         * loudmouth/*.[ch]
152         - s/Imendio HB/Imendio AB/
153
154 2004-10-05  Mikael Hallendal  <micke@imendio.com>
155
156         * docs/reference/loudmouth-sections.txt:
157         - Added missing function
158
159 2004-09-24  Tim Robbins  <tim@teragen.com.au>
160
161         * loudmouth/lm-connection.c: (connection_do_close):
162         - Use g_source_destroy instead of g_source_remove since we might not
163           use the default main context.
164
165 2004-09-20  Tollef Fog Heen  <tfheen@raw.no>
166
167         * loudmouth/lm-connection.c:
168           (connection_in_event): Use gsize and not gint, they have
169           different sizes on 64 bit architectures.
170
171         * loudmouth/lm-ssl.c, loudmouth/lm-internals.h:
172           Adjust prototype of _lm_ssl_read to match.
173
174 2004-09-03  Mikael Hallendal  <micke@imendio.com>
175
176         * examples/Makefile.am:
177         * examples/lm-register.c:
178         - Added small tool to register an account
179
180 2004-09-02  Mikael Hallendal  <micke@imendio.com>
181
182         * loudmouth/lm-connection.c: (lm_connection_set_proxy):
183         - Use NULL to unset the proxy settings
184         * docs/reference/tmp/lm-proxy.sgml: Updated LmProxyType docs
185
186 2004-08-30  Mikael Hallendal  <micke@imendio.com>
187
188         * Released 0.17.1
189         
190         * NEWS: Updated for 0.17.1
191         * configure.in: Bumped version to 0.17.1
192         * loudmouth/lm-connection.c: 
193         (connection_start_keep_alive):
194         - Don't add idle if keep alive rate is 0.
195         - Patch from Marcin Krzyżanowski <krzak@hakore.com>
196         (lm_connection_new): initialize keep alive rate
197
198 2004-08-27  Mikael Hallendal  <micke@imendio.com>
199
200         * Released 0.17
201         
202         * NEWS: Updated for 0.17
203         * configure.in: Don't try to output mono Makefiles
204         * docs/reference/tmpl/lm-connection.sgml: Updated
205         * loudmouth/lm-connection.[ch]:
206         - Changed the LmConnectionState enum to follow the rest of the API 
207           better.
208
209 2004-08-25  Mikael Hallendal  <micke@imendio.com>
210
211         * loudmouth/lm-connection.[ch]: 
212         (connection_send_keep_alive),
213         (connection_start_keep_alive), 
214         (connection_stop_keep_alive): Added
215         (lm_connection_set_keep_alive_rate): 
216         - Added support to have Loudmouth send keep alive packages, a single 
217           space, at regular intervals.
218
219 2004-08-09  Mikael Hallendal  <micke@imendio.com>
220
221         * examples/test-tunnel.c: Updated.
222         * loudmouth/lm-connection.[ch]:
223         (lm_connection_get_jid), (lm_connection_set_jid): 
224         - Replaced the _host functions with these. These makes much more sense.
225
226 2004-08-08  Mikael Hallendal  <micke@imendio.com>
227
228         * configure.in: Bumped version to 0.17
229
230 2004-08-08  Mikael Hallendal  <micke@imendio.com>
231
232         * docs/reference/tmpl/lm-proxy.sgml: Updated docs
233         * examples/test-tunnel.c: Use the new API for connecting to other host
234           than the actual server name (host part of jid).
235         * loudmouth/lm-connection.[ch]:
236         (lm_connection_set_host), (lm_connection_get_host): Added
237         - Use lm_connection_get_host internally when connecting.
238         - Make LM_PROXY_TYPE_NONE reset the proxy settings on a connection.
239         * loudmouth/lm-proxy.c: (_lm_proxy_connect_cb): Don't connect when 
240           proxy is of type LM_PROXY_TYPE_NONE.
241
242 2004-08-08  Mikael Hallendal  <micke@imendio.com>
243
244         * docs/reference/tmpl/lm-proxy.sgml: Added LM_PROXY_TYPE_NONE
245         * examples/Makefile.am: Added test-tunnel.c
246         * examples/test-tunnel.c: 
247         - Added test that uses LM_PROXY_TYPE_NONE.
248         * loudmouth/lm-internals.h: Cleaning
249         * loudmouth/lm-proxy.c: 
250         - Support using LM_PROXY_TYPE_NONE for direct 
251           (for example an ssh-tunnel) "proxy".
252
253 2004-08-03  Mikael Hallendal  <micke@imendio.com>
254
255         * Synced from SVN. Going to continue working on it here.
256
257 2004-06-15  Mikael Hallendal  <micke@imendio.com>
258
259         * README: Updated GnuTLS dependency.
260         * mono/*: Some work on the mono bindings.
261
262 2004-05-28  Mikael Hallendal  <micke@imendio.com>
263
264         * configure.in: 
265         - Correctly inform whether SSL support was enabled or not.
266
267 2004-05-28  Mikael Hallendal  <micke@imendio.com>
268
269         * src/lm-sha.c: Fixed lvalue cast that wasn't approved by newer GCC.
270
271 2004-05-10  Mikael Hallendal  <micke@imendio.com>
272
273         * configure.in: Enable Mono on request
274         
275         * mono/*: 
276         - Updated the bindings some.
277         - Removed the autogenerated, it's such a small API that I figured
278           it was easier to wrap it manually.
279
280 2004-04-30  Mikael Hallendal  <micke@imendio.com>
281
282         * loudmouth/lm-parser.c (parser_end_node_cb): Unref the message node.
283
284 2004-04-29  Mikael Hallendal  <micke@imendio.com>
285
286         * examples/lm-change-password.c:
287         * examples/Makefile.am:
288         - Added a small tool to change the password on a jabber account.
289
290 2004-04-27  Mikael Hallendal  <micke@imendio.com>
291
292         * Ignore on autogenerated files.
293
294 2004-04-20  Mikael Hallendal  <micke@imendio.com>
295
296         * loudmouth/*.[ch]: Updated copyright information
297
298 2004-04-20  Mikael Hallendal  <micke@imendio.com>
299
300         * configure.in: Now depend on Glib 2.4
301         * loudmouth/lm-queue.[ch]: Removed, use the new GQueue in Glib 2.4
302         * loudmouth/lm-connection.[ch]: Use GQueue instead of LmQueue.
303
304 2004-04-16  Mikael Hallendal  <micke@imendio.com>
305
306         * configure.in: Added libtasn1 requirement
307         * loudmouth.spec.in: Added requirement on libtasn if built with SSL.
308
309 2004-04-04  Mikael Hallendal  <micke@imendio.com>
310
311         * loudmouth/lm-sha.c: Commited compile fix from Sjoerd.
312
313 2004-03-20  Mikael Hallendal  <micke@imendio.com>
314
315         * docs/reference/loudmouth-sections.txt:
316         - Added lm_connection_get_state
317         - Added LmConnectionState
318
319 2004-03-17  Mikael Hallendal  <micke@imendio.com>
320
321         * Synced from SVN.
322
323         * Released 0.16
324         
325         * configure.in: Bumped to 0.16 
326         * NEWS: Updated for 0.16
327  
328 2004-03-17  Mikael Hallendal  <micke@imendio.com>
329
330         * docs/reference/*: Updated documentation.
331         * loudmouth/*: Fixed the documentation in a couple of places. 
332
333 2004-03-17  Mikael Hallendal  <micke@imendio.com>
334
335         * loudmouth/lm-connection.[ch]
336         (lm_connection_new_with_context): 
337         - Added to be able to give what context the connection should be 
338           running in. 
339         - All internal functions are updated to use the context or NULL if 
340           lm_connection_new was called.
341         - Should make it possible to use several LmConnections in various 
342           threads.
343
344 2004-03-17  Mikael Hallendal  <micke@imendio.com>
345
346         * loudmouth/lm-connection.c: 
347         * loudmouth/lm-internal.h:
348         * loudmouth/lm-proxy.c: 
349         - Make the HTTP proxy support asynchronous. Patch from Josh Beam.
350         - Re-enable the HTTP proxy support.
351         * examples/lm-send-sync.c: 
352         * examples/lm-send-async.c:
353         * examples/test-http-proxy.c:
354         - Added two of the old examples and a new one to test out the HTTP 
355           proxy support.
356
357 2004-03-17  Mikael Hallendal  <micke@imendio.com>
358
359         * configure.in: Generate examples/Makefile
360         * loudmouth/test-jid.c: Removed
361         * loudmouth/test-lm.c: Moved to examples/
362         * exmples/*: Moved out from loudmouth/
363
364 2004-02-05  Mikael Hallendal  <micke@imendio.com>
365
366         * README: Updated information about website and bug reporting
367
368 2004-01-29  Richard Hult  <richard@imendio.com>
369
370         * loudmouth/lm-message-node.c: (lm_message_node_to_string):
371         * loudmouth/lm-message.c: (lm_message_new):
372         (lm_message_new_with_sub_type), (lm_message_unref): 
373         - Plug leaks and fix two small coding style issues.
374
375 2004-01-23  Mikael Hallendal  <micke@imendio.com>
376         
377         * Release 0.15.1
378
379         * NEWS: 
380         * configure.in:
381         - Updated to 0.15.1
382
383 2004-01-22  Frederic Crozat  <fcrozat@mandrakesoft.com>
384
385         * configure.in:
386         * loudmouth/lm-ssl.c: (ssl_verify_certificate):
387         Don't use deprecated function of gnutls.
388         Now requires gnutls >= 1.0.0
389
390 2004-01-21  Mikael Hallendal  <micke@imendio.com>
391
392         * Release 0.15.
393
394 2004-01-21  Mikael Hallendal  <micke@imendio.com>
395
396         * Makefile.am:
397         * configure.in:
398         - Removed the mono bindings for now.
399
400 2004-01-21  Richard Hult  <richard@imendio.com>
401
402         * loudmouth.spec.in: 
403         - The library changed name, update to libloudmouth-1.la.
404         
405 2004-01-21  Mikael Hallendal  <micke@imendio.com>
406
407         * docs/reference/tmpl/lm-ssl.sgml:
408         * loudmouth/lm-ssl.c:
409         - Added API documentation
410
411 2004-01-21  Mikael Hallendal  <micke@imendio.com>
412
413         * docs/reference/loudmouth-docs.sgml:
414         * docs/reference/loudmouth-sections.txt:
415         * docs/reference/tmpl/lm-connection.sgml:
416         * docs/reference/tmpl/loudmouth-unused.sgml:
417         * docs/reference/tmpl/lm-ssl.sgml:
418         * loudmouth/lm-ssl.h:
419         - Added new file to documentation
420
421 2004-01-21  Mikael Hallendal  <micke@imendio.com>
422
423         * Makefile.am:
424         * configure.in: Work on the C# bindings
425         * NEWS: Preparing for 0.15
426         * loudmouth-1.0.pc.in: Versioned the library
427         * loudmouth/Makefile.am: ditto
428         * loudmouth/lm-connection.c: 
429         * loudmouth/lm-connection.h: Disabled the proxy support.
430         * mono/Makefile:
431         * mono/Makefile.am:
432         * mono/loudmouth/Makefile.am:
433         * mono/loudmouth/loudmouth-api.xml:
434         * mono/loudmouth/loudmouth.metadata:
435         * mono/sources/loudmouth-sources.xml:
436         - WIP on the bindings, first cut of generated bindings.
437
438 2004-01-16  Mikael Hallendal  <micke@imendio.com>
439
440         * loudmouth/lm-connection.c:
441         (connection_failed_with_error),
442         (connection_connect_cb): 
443         (connection_do_connect):
444         - Don't fall through after calling connection_failed.
445         - Fixed bug #130449
446
447 2004-01-15  Mikael Hallendal  <micke@imendio.com>
448
449         * loudmouth/Makefile.am:
450         - Added lm-ssl.[ch]
451         * loudmouth/lm-connection.c:
452         * loudmouth/lm-connection.h:
453         - Splitted out the SSL parts
454         - No longer contains loads of #ifdefs around tls parts
455         - Added lm_connection_[set|get]_ssl instead.
456         * loudmouth/lm-internals.h:
457         - Added _lm_ssl*
458         * loudmouth/lm-ssl.c:
459         * loudmouth/lm-ssl.h:
460         - New files, the SSL parts from LmConnection.
461         - Declares no-ops for SSL functions if compiled without support for it.
462         * loudmouth/test-lm.c:
463         - Updated for new SSL API.
464
465 2004-01-15  Mikael Hallendal  <micke@imendio.com>
466
467         * loudmouth/lm-connection.c:
468         - Added Sjoerd Simons to copyright list.
469
470 2004-01-15  Mikael Hallendal  <micke@imendio.com>
471
472         * loudmouth/Makefile.am:
473         - Added lm-proxy.[ch]
474         * loudmouth/lm-connection.c:
475         * loudmouth/lm-connection.h:
476         - Commited patch from Sjoerd Simons to make async connect work better.
477         - Cleaned out the proxy support to it's own file.
478         - Made sure all public functions user g_return_(val)_if_fail.
479         * loudmouth/lm-internals.h:
480         - cleaned up a bit and added proxy function and base64 encoding
481         * loudmouth/lm-message-handler.c:
482         - include config.h
483         * loudmouth/lm-proxy.c:
484         * loudmouth/lm-proxy.h:
485         - Added, broken out of LmConnection
486         - Commited patch from Josh Beam
487         * loudmouth/lm-utils.c:
488         (_lm_utils_base64_encode): Added.
489
490 2004-01-08  Richard Hult  <richard@imendio.com>
491
492         * loudmouth/lm-connection.c (connection_timeout_check_open):
493         Remove debug output.
494
495         * acinclude.m4: Add gmtoff check.
496
497         * loudmouth/lm-utils.c (lm_utils_get_localtime): Use tm_gmtoff if
498         available.
499
500 2004-01-06  Mikael Hallendal  <micke@imendio.com>
501
502         * loudmouth/lm-connection.c:
503         - Now works with sync open again.
504         * loudmouth/lm-utils.c: (_lm_utils_free_callback):
505         - Work with NULL
506
507 2004-01-05  Mikael Hallendal  <micke@imendio.com>
508
509         * loudmouth/lm-connection.c: 
510         - Work in progress of making the lm_connection_open really async.
511         - Currently broken for lm_connection_open_block.
512
513 2003-12-27  Mikael Hallendal  <micke@imendio.com>
514
515         * loudmouth/lm-connection.[ch]: 
516         (connection_verify_certificate),
517         (connection_do_open), 
518         (connection_do_close), 
519         (connection_in_event),
520         (connection_send),
521         (lm_connection_new): Updated to not pass SSL function everywhere.
522         (lm_connection_open): Removed the _ssl function
523         (lm_connection_open_and_block): Removed the _ssl function
524         (lm_connection_set_use_ssl): Added, set LmSSLFunction here instead.
525         (lm_connection_get_use_ssl): Internal update
526
527 2003-12-27  Mikael Hallendal  <micke@imendio.com>
528
529         * docs/reference/tmpl/lm-error.sgml:
530         * loudmouth/lm-connection.c:
531         * loudmouth/lm-connection.h:
532         (connection_connect_nonblocking),
533         (connection_do_open),
534         (connection_http_proxy_negotiate),
535         (lm_connection_new),
536         (lm_connection_get_proxy_type),
537         (lm_connection_set_proxy_type),
538         (lm_connection_get_proxy_server),
539         (lm_connection_set_proxy_server),
540         (lm_connection_get_proxy_port),
541         (lm_connection_set_proxy_port):
542         - Add support for HTTP proxy
543         - Patch from Josh Beam <josh@3ddrome.com>
544         - Needed changes to Loudmouth to fix bug #117757 in Gossip.
545
546 2003-12-19  Mikael Hallendal  <micke@imendio.com>
547
548         * loudmouth/lm-connection.c: 
549         (connection_free): cleaned up a bit.
550         (connection_connect_nonblocking): added, nonblocking connect
551         (connection_do_open):
552         - Use the nonblocking connect
553         - set state
554         (connection_do_close): cleaned up 
555         (connection_auth_reply): set state
556         (lm_connection_cancel_open): added
557         (lm_connection_authenticate): set state
558         (lm_connection_is_open): use state
559         (lm_connection_is_authenticated): use state
560         (lm_connection_get_state): added
561         - Part fixes bug #122326
562
563 2003-12-15  Mikael Hallendal  <micke@imendio.com>
564
565         * README: Updated information about bug reporting
566
567 2003-12-15  Mikael Hallendal  <micke@imendio.com>
568
569         * loudmouth/lm-connection.c:
570         - Fixed issue with the SSL parts. Patch from Colin Walters
571
572 2003-11-20  Ross Burton  <ross@burtonini.com>
573
574         * loudmouth/lm-message-node.h:
575         - Mark the private members how gtk-doc wants it.
576
577         * loudmouth/lm-message-node.c:
578         - Fix comment typos and document more parameters.
579
580         * loudmouth/lm-connection.c: Fix comment typos.
581
582         * docs/reference/loudmouth-sections.txt: 
583         - Removed a non-existent function.
584
585         * docs/reference/tmpl/lm-connection.sgml: Fix some typos.
586
587         * docs/reference/tmpl/lm-message-node.sgml:
588         - Document raw_node, and remove private fields.
589
590         * docs/reference/tmpl/lm-message.sgml: gtk-doc did this itself...
591
592 2003-11-16  Mikael Hallendal  <micke@imendio.com>
593
594         * loudmouth/lm-connection.c: 
595         (lm_connection_new): Don't create and attach source here
596         (lm_connection_open): Do it here, 
597         (lm_connection_open_and_block): and here. Fixes #126983.
598
599 2003-11-11  Mikael Hallendal  <micke@imendio.com>
600
601         * loudmouth/lm-connection.c:
602         (connection_do_close): Remove the incoming source. Reported and fix
603           proposed by Christopher G. Abiad
604         (lm_connection_authenticate_and_block):
605         - Set error message on auth failed (should be more explicit). Fixes
606           problem when you try to read the error message on fail.
607
608 2003-11-11  Mikael Hallendal  <micke@imendio.com>
609
610         * Makefile.am: 
611         - Added README.WIN32 so it will be distributed next release.
612
613 2003-10-13  Mikael Hallendal  <micke@imendio.com>
614
615         * configure.in: Bumped version to 0.14.1.99
616
617         * loudmouth/lm-message.c: 
618         (lm_message_new): Always set an ID on the message.
619
620 2003-10-13  Mikael Hallendal  <micke@imendio.com>
621  
622         * mono/*: Added first cut at C-sharp bindings that I hacked up a while
623           ago. Can't continue development at the moment since the mono compiler
624           segfaults on my machine at the moment.
625
626         * python/*: Johan Dahlin added a first cut of python bindings, yay him!
627
628 2003-10-13  Mikael Hallendal  <micke@imendio.com>
629
630         * NEWS: Updated for 0.14.1
631         
632         * configure.in: Bumped to 0.14.1
633         
634         * loudmouth/lm-connection.c: (connection_in_event): check if bytes_read
635           equals GNUTLS_E_AGAIN, fixes crash. Patch by Marinus Schraal.
636
637 2003-10-03  Mikael Hallendal  <micke@imendio.com>
638
639         * Release 0.14
640         
641         * NEWS: Updated for 0.14
642         
643         * configure.in: Bumped to 0.14
644         
645 2003-10-02  Mikael Hallendal  <micke@imendio.com>
646
647         * loudmouth/lm-connection.c: (connection_free):
648         - Free the message handlers and message handler list when free'ing 
649           the connection.
650
651 2003-10-01  Mikael Hallendal  <micke@imendio.com>
652
653         * configure.in: Tweaked the --with-ssl option a bit.
654         
655         * loudmouth.spec.in: 
656         - Added a with_ssl to be able to easily turn of GNU Tls support.
657         - Fixes LM-14
658
659 2003-10-01  Mikael Hallendal  <micke@imendio.com>
660
661         * loudmouth/lm-connection.c: (connection_do_open):
662         - Added a patch for IPv6-support submitted by Sjoerd Simons.
663         - Sjoerd also seems to know this stuff better than me since his 
664           connection code looked more sane than mine. Thanks alot!
665
666 2003-10-01  Mikael Hallendal  <micke@imendio.com>
667
668         * loudmouth/Makefile.am: 
669         - added lm-queue.[ch]
670           
671         * loudmouth/lm-queue.[ch]: copied and extended from GQueue.
672         
673         * loudmouth/lm-connection.c: 
674         - Use LmQueue instead of GQueue
675         (lm_connection_open_and_block): Better handling of the queue.
676         
677         (lm_connection_send_with_reply_and_block): 
678         - Fixed a bug causing replies to be over looked.
679
680 2003-10-01  Mikael Hallendal  <micke@imendio.com>
681
682         * README.WIN32, win32-config.h: 
683         - Added information about how to build on Windows. Fixes LM-12
684           
685 2003-08-24  Martyn Russell  <ginxd@btopenworld.com>
686
687         * loudmouth/lm-connection.c:
688         (connection_in_event): Use an int for bytes_read. Since bytes_read is
689           now also used for gnutls return value (which can be < 0) a gsize
690           (unsigned) is not a good idea...
691         
692 2003-08-15  Mikael Hallendal  <micke@imendio.com>
693
694         * Release 0.13.2
695
696         * configure.in: Bumped to 0.13.2
697         * NEWS: Updated for 0.13.2
698
699         * loudmouth/lm-parser.c: (parser_end_node_cb):
700         - Don't crash on </stream:stream>. Fixes bug #117952
701
702 2003-08-05  Mikael Hallendal  <micke@imendio.com>
703
704         * Release 0.13.1
705
706         * NEWS: Updated for 0.13.1
707         * configure.in: Bumped to 0.13.1
708
709 2003-08-05  Mikael Hallendal  <micke@imendio.com>
710
711         * acinclude.m4: Added GnuTLS-macro from GnuTLS-distribution.
712  
713         * configure.in: Added comment if SSL support disabled.
714
715         * loudmouth.spec.in: Added Build-requirment on gtk-doc.
716
717         * Release 0.13
718         
719         * NEWS: Updated for 0.13  
720         * configure.in: Bumped to 0.13
721
722 2003-08-04  Mikael Hallendal  <micke@imendio.com>
723
724         * README: 
725         - Added comment about GnuTLS and --with-included-libtasn1.
726         - Fixes LM-7 and bug #117801
727
728 2003-08-04  Mikael Hallendal  <micke@imendio.com>
729
730         * loudmouth/lm-connection.c: (connection_in_event): 
731         - Disconnect and report that we are disconnected if read doesn't work.
732           This solved the problem when Gossip eats 100% CPU because the server
733           got disconnected. Fixes LM-9.
734
735         * loudmouth/Makefile.am: Use -DRUNTIME_ENDIAN, fixes LM-8, bug #118502.
736
737         * loudmouth/lm-connection.c: 
738         - Modifed patch from Mikhail Zabaluev, fixes LM-5.
739         * (connection_free): close connection if it's still open.
740         * (connection_do_open): Store away the GSource handlers.
741         * (connection_do_close): Remove the GSources from the IOChannel.
742         * (connection_in_event, connection_error_event, connection_hup_event):
743         - Return FALSE if io_channel = NULL.
744
745         * configure.in:
746         - Submitted patch for Loudmouth from Mikhail Zabaluev to
747           make configure.in use the aclocal-stuff from gnutls instead of
748           selfmade hack. Fixes LM-6. 
749
750 2003-07-29  Mikael Hallendal  <micke@imendio.com>
751
752         * loudmouth/lm-message.[ch]:
753         - Added LM_MESSAGE_SUB_TYPE_NORMAL to be a sub type that can actually 
754           be set.
755         - If type is not set in a <message/>-node it won't be reported to be 
756           LM_MESSAGE_SUB_TYPE_NORMAL but rather LM_MESSAGE_SUB_TYPE_NOT_SET.
757
758 2003-07-17  Mikael Hallendal  <micke@imendio.com>
759
760         * Release 0.12
761
762         * NEWS: Updated for 0.12
763         * configure.in: Bumped to 0.12
764
765 2003-07-17  Mikael Hallendal  <micke@imendio.com>
766
767         * loudmouth/lm-connection.c:
768         (auth_req_data_free): Added, free's auth data
769         (connection_create_auth_req_msg): 
770         - Added, generates an auth request message
771         (connection_create_auth_msg):
772         - Added, generates an auth message
773         (connection_auth_req_reply): Added
774         (connection_check_auth_type): Added
775         (lm_connection_authenticate): Modified
776         (lm_connection_authenticate_and_block): Modified
777         - Fixes cf-bug #509
778
779 2003-07-17  Mikael Hallendal  <micke@imendio.com>
780
781         * configure.in: Added GNUTLS_REQUIRED
782         * loudmouth.spec.in: Added gnutls dependency in RPM's.
783
784 2003-07-17  Mikael Hallendal  <micke@imendio.com>
785
786         * docs/reference/loudmouth-sections.txt: Added new functions
787         * docs/reference/tmpl/lm-error.sgml: Documented undocumented references.
788         * docs/reference/tmpl/lm-message-handler.sgml: Same.
789         * docs/reference/tmpl/loudmouth-unused.sgml: Same
790         * loudmouth/lm-debug.c: Same
791         
792         * loudmouth/lm-message-handler.c:
793         * loudmouth/lm-message-handler.h:
794         (_lm_message_handler_handle_message): 
795         - Check if handler is valid before trying to handle message.
796         (lm_message_handler_new): Set handler to be valid.
797         (lm_message_handler_invalidate): Added. Fixes cf-bug #677
798         (lm_message_handler_is_valid): Added
799
800 2003-07-14  Mikael Hallendal  <micke@imendio.com>
801
802         * Release 0.11
803
804         * configure.in: Bumped to 0.11
805         * NEWS: Updated for 0.11
806         
807 2003-07-12  Mikael Hallendal  <micke@imendio.com>
808
809         * configure.in: 
810         - Added SSL support, patch from Bartosz Zapalowski. THIS GUY ROCKS!
811         * docs/reference/loudmouth-sections.txt: 
812         - added lm_connection_supports_ssl.
813         * loudmouth/lm-connection.c: Added support for SSL.
814         * loudmouth/test-lm.c: (main): Use SSL if it's compiled in.
815
816 2003-07-07  Mikael Hallendal  <micke@imendio.com>
817
818         * Release 0.10.1
819
820         * NEWS: Updated for 0.10.1
821         * configure.in: Bumped version to 0.10.1
822
823 2003-07-07  Mikael Hallendal  <micke@imendio.com>
824
825         * loudmouth/lm-connection.c: moved the includes around a bit so that 
826           it builds on FreeBSD without problems.
827
828 2003-06-26  Mikael Hallendal  <micke@imendio.com>
829
830         * Released 0.10
831         * configure.in: Changed version to 0.10
832         * NEWS: Added 0.10 news.
833         
834 2003-06-25  Mikael Hallendal  <micke@imendio.com>
835
836         * configure.in: Bumped to 0.9.1
837         * loudmouth.spec.in: Changed the URL to the project site.
838
839 2003-06-24  Mikael Hallendal  <micke@imendio.com>
840
841         * loudmouth/lm-connection.c:
842         * loudmouth/lm-sha.c: 
843         * loudmouth/test-lm.c:
844         - Submitted patch that makes Loudmouth work and build on Win32.
845           Patch sent by Vince Negri, thanks a lot.
846
847 2003-06-15  Mikael Hallendal  <micke@imendio.com>
848
849         * loudmouth/lm-message.c:
850         * loudmouth/lm-message.h:
851         (lm_message_get_sub_type): Return LmMessageSubType.
852           Found by Alexander Saltanov
853
854 2003-06-13  Mikael Hallendal  <micke@imendio.com>
855
856         * AUTHORS: updated contact information
857         * README: updated contact information
858         * loudmouth/*.[ch]: updated email address
859         * loudmouth/lm-message-node.c: don't lower case the XML
860         * loudmouth/lm-message.c:
861         (message_type_from_string): use strcmp rather than strcasecmp
862         * loudmouth/lm-parser.c: 
863         (parser_start_node_cb),
864         (parser_end_node_cb), 
865         (lm_parser_new): use strcmp instead of strcasecmp
866
867 2003-06-11  Mikael Hallendal  <micke@codefactory.se>
868
869         * docs/reference/loudmouth-sections.txt: Added new functions
870
871         * loudmouth/lm-message-node.c: 
872         (_lm_message_node_new): Set node->raw_mode = FALSE.
873         (lm_message_node_get_raw_mode): Added
874         (lm_message_node_set_raw_mode): Added
875         (lm_message_node_to_string): Don't escape if raw_mode == TRUE
876         
877         * loudmouth/lm-message-node.h: Added new functions.
878
879 2003-04-26  Mikael Hallendal  <micke@codefactory.se>
880
881         * loudmouth.spec.in: Enable gtk-doc
882  
883         * Released 0.9.1
884
885 2003-04-17  Mikael Hallendal  <micke@codefactory.se>
886
887         * docs/reference/Makefile.am: Make --disable-gtk-doc not try to 
888           install the documents :) Fixes #633, patch by Kevin Dougherty.
889         
890         * loudmouth/lm-debug.c: Make build work with --disable-debug, 
891           fixes #634, patch by Kevin Dougherty.
892
893 2003-04-11  Mikael Hallendal  <micke@codefactory.se>
894
895         * NEWS: More updates
896         
897         * configure.in: Bumped version to 0.9
898         
899         * loudmouth.spec.in: Fixed
900         
901         * loudmouth/lm-connection.c:
902         (lm_connection_send_with_reply_and_block): Removed debug output.
903         
904 2003-04-10  Mikael Hallendal  <micke@codefactory.se>
905
906         * NEWS: Updated for upcoming 0.9 release.
907         
908 2003-04-07  Mikael Hallendal  <micke@codefactory.se>
909
910         * README: Added information about debug output.
911         
912         * loudmouth/lm-connection.c: 
913         (connection_in_event): Use a define for IN_BUFFER_SIZE
914
915 2003-04-07  Mikael Hallendal  <micke@codefactory.se>
916
917         * README:
918         * loudmouth/lm-connection.c: (connection_in_event):
919
920 2003-04-07  Mikael Hallendal  <micke@codefactory.se>
921
922         * configure.in:
923         - Added debug flag.
924         * loudmouth/Makefile.am:
925         - Added lm-debug.[ch]
926         * loudmouth/lm-internals.h: Added debug-stuff
927         * loudmouth/lm-connection.c: Use debug-stuff instead of d()-macro.
928         * loudmouth/lm-message.c: Same
929         * loudmouth/lm-parser.c: Same
930
931 2003-04-05  Mikael Hallendal  <micke@codefactory.se>
932
933         * Makefile.am: Added .spec and .spec.in to EXTRA_DIST
934         * configure.in: Set GLIB2_REQUIRED, will be used in the spec-file.
935         * loudmouth/lm-message.c:
936         * loudmouth/lm-message.h:
937         - fixed the support for message and presence elements without type 
938           attribute.
939
940 2003-04-01  Mikael Hallendal  <micke@codefactory.se>
941
942         * loudmouth/lm-message.c:
943         (lm_message_get_node): added, using for bindings.
944
945         * loudmouth/lm-message-node.c:
946         (lm_message_node_get_value): added, makes binding easier.
947         (lm_message_node_set_attribute): splitted out to just set one
948           attribute. using just this one to bind for C#.
949
950 2003-03-24  Mikael Hallendal  <micke@codefactory.se>
951
952         * loudmouth/lm-connection.c:
953         (connection_incoming_dispatch):
954         - don't call handle_message if message is NULL.
955         (connection_do_open): 
956         - set error, don't send any messages, just open the socket and
957           send the xml-document starter.
958         (connection_do_block): Removed.
959         (connection_create_source): added
960         (lm_connection_open_and_block): implemented.
961         (lm_connection_authenticate_and_block): implemented.
962         (lm_connection_send_with_reply_and_block): implemented.
963
964 2003-03-23  Mikael Hallendal  <micke@codefactory.se>
965
966         * loudmouth/lm-connection.c:
967         - Now uses a queue for all incoming messages and a source that
968           polls the queue.
969         (connection_do_close): added, unrefs
970           io_channel and sets connection to be disconnected.
971         (connection_do_open): renamed from connection_connect
972
973 2003-03-14  Mikael Hallendal  <micke@codefactory.se>
974
975         * loudmouth/lm-connection.c:
976         (lm_connection_get_server): added
977         (lm_connection_set_server): added
978         (lm_connection_get_port): added
979         (lm_connection_set_port): added
980         (lm_connection_get_use_ssl): added
981         (lm_connection_set_use_ssl): added
982         (lm_connection_new): Don't take port and use_ssl arguments. Make
983           server-attribute optional (passing NULL).
984
985         * configure.in: bumped to 0.8.99
986         
987 2003-03-13  Mikael Hallendal  <micke@codefactory.se>
988
989         * autogen.sh (need_configure_in):
990         - fix to autogen on solaris. Reported by stric.
991
992         * configure.in: 
993         - Added check for -lnsl and -lsocket needed to link on solaris.
994
995         * Released 0.8
996
997         * configure.in: bumped version to 0.8
998
999         * README (Introduction): added some information before the 0.8
1000           release.
1001
1002         * loudmouth/lm-connection.c:
1003         (connection_error_event): call disconnect callback.
1004         (connection_hup_event): same.
1005         (lm_connection_set_disconnect_function): added.
1006
1007 2003-03-05  Mikael Hallendal  <micke@codefactory.se>
1008
1009         * loudmouth/*.h: prettified headers.
1010         
1011         * docs/reference/*: Updating docs. Now at 100%!
1012
1013 2003-03-03  Mikael Hallendal  <micke@codefactory.se>
1014
1015         * loudmouth/lm-message-node.h:
1016         - removed LmMessageNodeFunc, wasn't used anywhere.
1017
1018         * docs/reference/*: Updating docs. At 88% now... sooon!
1019
1020         * Changed license (again), this time back to LGPL. And it'll stay
1021           there :)
1022         
1023 2003-02-27  Mikael Hallendal  <micke@codefactory.se>
1024
1025         * Worked alot on documenting.
1026         
1027 2003-02-25  Mikael Hallendal  <micke@codefactory.se>
1028
1029         * loudmouth/lm-connection.c (connection_in_event): 
1030         - Try to solve #553
1031
1032 2003-02-24  Mikael Hallendal  <micke@codefactory.se>
1033
1034         * loudmouth/lm-sha.c: don't use stdint.h, instead use the g*
1035           versions of different int lengths. Fixes #536
1036
1037 2003-02-08  Mikael Hallendal  <micke@codefactory.se>
1038
1039         * src/*.c: Started to document
1040
1041         * src/lm-result.h: Removed
1042
1043         * src/lm-error.[ch]: Added
1044
1045         * src/lm-connection.[ch]: 
1046         - Use GErrors for reporting errors.
1047         - Fixes #510
1048
1049         * docs/reference/Makefile.am: Don't link against GObject.
1050
1051 2003-02-06  Mikael Hallendal  <micke@codefactory.se>
1052
1053         * loudmouth/lm-connection.c (connection_connect): send the opening
1054           xml tag stating that we'll use encoding utf-8.
1055
1056 2003-02-02  Mikael Hallendal  <micke@codefactory.se>
1057
1058         * loudmouth/lm-message.c:
1059         - fixes #504
1060         (lm_message_new): take to-argument
1061         (lm_message_new_with_sub_type): take to-argument
1062
1063         * loudmouth/test-lm.c (main): don't init GType, not used anymore..
1064
1065         * lm-message-handler.c:
1066         - include files we actually need :)
1067
1068         * loudmouth/lm-connection.c: don't include removed files.
1069
1070         * loudmouth/Makefile.am:
1071         - Removed all the stuff that generated the marshallers.
1072
1073         * configure.in: 
1074         - removed gobject deps
1075         - removed glib-genmarshal deps
1076
1077         * loudmouth-1.0.pc.in (Requires): removed all deps except glib.
1078
1079         * loudmouth/lm-connection.c: 
1080         - Is no more a GObject, this means that loudmouth now only depends
1081           on GLib which makes it minimal and perfect for embedded systems.
1082
1083         * configure.in: Don't require libgtcpsocket
1084
1085         * loudmouth/lm-connection.c: Don't use libgtcpsocket for
1086           communication. Now uses a GIOChannel.
1087
1088         * loudmouth/*.c:
1089         - Use GDestroyNotify instead of LmFreeFunction.
1090         - Added LmCallback which is a struct with callback, 
1091           user_data and a notify function.
1092         - Changed LmConnectionOpenFunction and LmAuthenticateFunction to
1093           be LmResultFunction.
1094
1095 2003-02-01  Mikael Hallendal  <micke@codefactory.se>
1096
1097         * loudmouth/lm-sha.c (lm_sha_hash): don't print the digest.
1098
1099 2003-01-31  Mikael Hallendal  <micke@codefactory.se>
1100
1101         * *: changed the license to the same one used in RoadRunner.
1102
1103         * loudmouth/lm-sha.c:
1104         - switched the SHA implementation for one with BSD license.
1105
1106         * loudmouth/lm-connection.c (lm_connection_authenticate): 
1107         - lm_sha_hash now returns a const gchar *
1108
1109
1110 2003-01-30  Mikael Hallendal  <micke@codefactory.se>
1111
1112         * docs/*: Added gtk-doc support. Now I just have to write API docs
1113           for everything :)
1114
1115         * loudmouth/lm-helper.[ch]: Removed.
1116         
1117 2003-01-30  Mikael Hallendal  <micke@codefactory.se>
1118
1119         * loudmouth/lm-message-node.c:
1120         (lm_message_node_to_string): made public since it's really useful
1121           for debugging your client.
1122         (lm_message_node_find_child): readded this function from the old
1123           LmNode. It traverses the tree to see if it can find the child
1124           and returns at the first it finds. lm_message_node_get_child
1125           only looks at the direct children.
1126
1127 2003-01-29  Mikael Hallendal  <micke@codefactory.se>
1128
1129         * loudmouth/lm-connection.c:
1130         (lm_connection_send): don't set ID here. we set it in
1131           send_with_reply if it's not set (since it's needed there to find
1132           the correct handler).
1133         (connection_connection_recv_cb): 
1134         - not sure if this helps any, return if length <= 0 instead of
1135           feeding it to the parser.
1136         
1137         * loudmouth/lm-message.[ch]: 
1138         - Added LmMessageSubType that can be used to set and check a
1139           message's sub type <node type="sub type">.
1140         (message_sub_type_from_string): added
1141         (message_sub_type_to_string): added
1142         (lm_message_new_with_sub_type): added
1143         (lm_message_get_sub_type): added
1144
1145         * loudmouth/lm-message-node.c (lm_message_node_get_child): 
1146         - remove variable that caused warning.
1147
1148         * configure.in: updated version to 0.2
1149
1150 2003-01-27  Mikael Hallendal <micke@codefactory.se>
1151
1152         * src/*: 
1153         - LmClient -> LmConnection
1154         - Use Message Handlers on LmConnection instead of signals
1155         - LmElement, LmPresence and LmIQ removed
1156         - LmMessage used for all kinds of messages now
1157         - LmMessageHandler added as a generic message handler for all
1158           kinds of messages.
1159         - send_with_reply added to give a callback when waiting for an
1160           answer to a request.
1161         - LmResult added to most calls. Used to get some feedback on what
1162           might have gone wrong.
1163                 
1164 2003-01-27  Anders Carlsson  <andersca@codefactory.se>
1165
1166         * autogen.sh (FILE): Use lm-message.c for testing.
1167
1168 2003-01-26  Mikael Hallendal  <micke@codefactory.se>
1169
1170         * loudmouth/*: Added lm-helper which will create elements to send
1171           through client.
1172         
1173 2003-01-25  Mikael Hallendal  <micke@codefactory.se>
1174
1175         * loudmouth/lm-marshal.list (VOID): cleaned up old marshallers.
1176
1177         * loudmouth/lm-element.c (lm_element_get_type_string): added.
1178
1179         * loudmouth/lm-client.c: 
1180         - Changed message, presence and iq received back into signals
1181         - Added default handlers to class
1182         - Calling default handlers only if none of the connected callbacks
1183           returned TRUE.
1184
1185 2003-01-21  Mikael Hallendal  <micke@codefactory.se>
1186
1187         * configure.in: don't use libgtcpsocket 1.0, use 0.1.0
1188
1189 2002-12-10  Mikael Hallendal  <micke@codefactory.se>
1190
1191         * loudmouth/lm-util.c:
1192         (lm_util_get_localtime): Added
1193         (lm_util_case_strstr): Removed
1194
1195         * loudmouth/lm-x.h: Removed.
1196
1197         * loudmouth/lm-element.c:
1198         - Added support for an iter for iterating over all x elements.
1199         - Needed to resolve #347
1200         (lm_element_get_x_iter): Added
1201         (lm_x_iter_next): Added
1202         (x_iter_next): Added
1203         (lm_x_iter_free): Added
1204
1205         * loudmouth/Makefile.am (libloudmouthinclude_HEADERS): 
1206         - install lm_util.h
1207
1208 2002-12-03  Mikael Hallendal  <micke@codefactory.se>
1209
1210         * loudmouth/lm-presence.c:
1211         - Fixed show-array indexing, Fixes #341 and #342
1212         (lm_presence_set_show): don't set
1213           <show/> to "normal", just leave it out.
1214         (presence_show_from_string): don't strcmp for "normal".
1215         (presence_string_from_show): don't return "normal".
1216
1217 2002-11-29  Richard Hult  <rhult@codefactory.se>
1218
1219         * loudmouth/lm-client.c (lm_client_subscribe_jid): Wrap g_print
1220         with debug macro.
1221         (lm_client_unsubscribe_jid): Likewise.
1222         (lm_client_connect): Add debug print.
1223         (client_connect_done_cb): Add debug print.
1224
1225         * loudmouth/lm-element.c (lm_element_new): When creating a stream
1226         element, use "stream:stream" instead of just "stream". This fixes
1227         the "Invalid XML" error we were getting from the server at the end
1228         of the stream.
1229
1230         * loudmouth/lm-client.c (lm_client_authenticate): Don't free the
1231         digest, it's static memory. This fixes a couple of very weird
1232         crashes.
1233         (lm_client_disconnect): Revert the fix I did here earlier, we
1234         don't want to set is_connected until we really get a disconnect
1235         callback from the connection. The problem is somewhere else.
1236         (lm_client_send): Compare against </stream:stream> instead of just
1237         </stream>.
1238
1239 2002-11-29  Mikael Hallendal  <micke@codefactory.se>
1240
1241         * loudmouth/lm-node.c (node_free): don't free directly, use
1242         ref-counts.
1243         (lm_node_add_child_node): ref the child node.
1244
1245         * loudmouth/lm-element.c:
1246         (lm_element_unref): implemented
1247         (lm_element_set_tree): ref the tree.
1248
1249 2002-11-29  Mikael Hallendal <micke@codefactory.se>
1250
1251         * loudmouth/lm-client.c: Changed default_foo_handler to
1252           foo_handler.
1253         
1254 2002-11-27  Richard Hult  <rhult@codefactory.se>
1255
1256         * loudmouth/lm-client.c (client_handle_iq): Fix warning by making
1257         id const.
1258
1259 2002-11-26  Richard Hult  <rhult@codefactory.se>
1260
1261         * loudmouth/lm-client.c (client_connection_closed_cb): 
1262         - Set is_connected to FALSE.
1263
1264 2002-11-26  Mikael Hallendal  <micke@codefactory.se>
1265
1266         * loudmouth/*: Changed so that LmElement and subclasses are no
1267           longer objects. Just structs. You need to use get/set-functions
1268           instead of properties.
1269         
1270 2002-11-25  Mikael Hallendal  <micke@codefactory.se>
1271
1272         * loudmouth/lm-element.c (element_get_property): fixed error
1273           causing object_get ("from") trying to get "to" value.
1274
1275 2002-11-24  Richard Hult  <rhult@codefactory.se>
1276
1277         * loudmouth/lm-client.c (client_handle_presence): 
1278         - Try to implement subscription requests.
1279
1280         * loudmouth/test-lm.c (main): Fix more callback types.
1281
1282         * loudmouth/lm-client.h: 
1283         - Remove lm_client_set_subscription_request_handler, unused.
1284
1285         * loudmouth/test-lm.c (main): Don't cast callbacks with (Type*).
1286
1287         * loudmouth/lm-client.c: 
1288         - Change function prototypes from *callback to callback.
1289
1290         * loudmouth/lm-client.h: Remove signal entry from object struct 
1291           and change function prototypes to match the definitions.
1292         
1293 2002-11-23  Richard Hult  <rhult@codefactory.se>
1294
1295         * loudmouth/lm-client.h: Add lm_client_get_agents.
1296
1297         * configure.in: Add compiler warnings logic but leave it disabled
1298           since the sha stuff is not very warning free.
1299
1300         * loudmouth/lm-node.c (lm_node_get_string): Escape the body string
1301           so we generate valid xml when sending things like '<', '>', and 
1302           '&'.
1303
1304 2002-11-23  Mikael Hallendal  <micke@codefactory.se>
1305
1306         * loudmouth/lm-node.c (lm_node_unlink): added
1307
1308         * loudmouth/lm-presence.c (presence_set_property): don't set
1309           <show>normal</show>
1310
1311         * loudmouth/lm-iq.c:
1312         (lm_iq_get_query_node):
1313         (lm_iq_set_query_node): removed, use lm_element_find_child and
1314           lm_element_add_child_node instead.
1315
1316         * loudmouth/lm-element.c:
1317         (lm_element_add_child): added :)
1318         (lm_element_find_child): added
1319
1320         * loudmouth/lm-client.c (client_connection_closed_cb): call
1321           disconnect callback.
1322
1323         * loudmouth/lm-sha.[ch]: added, found in jabberd2, remember to
1324           check license issues with this.
1325
1326         * loudmouth/lm-client.c:
1327         (lm_client_authenticate): use digest for sending password instead
1328           of clear text.
1329
1330         * loudmouth/lm-client.c:
1331         (client_handle_iq): handle register reply
1332         (lm_client_register): added
1333         (lm_client_authenticate): moved stuff from iq-helper, easy enough
1334           now with the changes earlier today.
1335
1336         * loudmouth/lm-iq-helper.[ch]: removed, not needed anymore.
1337
1338         * loudmouth/lm-element.c (lm_element_add_child_node): added, this
1339           can be used to add any node to any element.
1340
1341         * loudmouth/lm-presence.c (presence_set_property): priority is an
1342           int, not string.
1343
1344         * loudmouth/lm-node.c (lm_node_add_child_node): rethinking, don't
1345           ref.
1346         
1347 2002-11-22  Mikael Hallendal  <micke@codefactory.se>
1348
1349         * loudmouth/lm-node.c:
1350         (lm_node_add_child): changed to take a name
1351           and a value, very handy when adding key/value pair nodes.
1352         (lm_node_add_child_node): added a _node to the old
1353           lm_node_add_child. Also ref's the child so the user should unref
1354           it after he's finished with it.
1355
1356         * loudmouth/lm-iq.c (lm_iq_new): take the type as argument.
1357
1358         * loudmouth/lm-client.c: added a default iq handler attribute and
1359           use it in handle_iq if the incoming IQ isn't handled by the
1360           library. This way a user of the library can now do anything with
1361           it, even use it's own namespaces and such.
1362
1363         * loudmouth/*: Changes LmXMLNode -> LmNode
1364
1365         * loudmouth/*:
1366         - Using LmXMLNode internally in all elements
1367         - Use lm_message_new, lm_iq_new, lm_presence new instead of
1368           g_object_new
1369         
1370         * loudmouth/lm-presence.c:
1371         (presence_get_xml_string): set to='' if it exists
1372
1373         * loudmouth/lm-xml-node.c:
1374         (lm_xml_node_ref): added
1375         (lm_xml_node_unref): added
1376         (lm_xml_node_free): made private
1377
1378         * loudmouth/lm-parser.c:
1379         (parser_end_element_cb): just unref the node, don't free it.
1380
1381         * loudmouth/lm-client.c: 
1382         - added "name", "version" and "os" proprties.
1383         (lm_client_register_default_message_handler):
1384         (lm_client_register_default_presence_handler): removed, unused
1385
1386         * loudmouth/lm-element.[ch]: 
1387         (lm_element_get_tree): Added, returns the XML tree for the
1388           element.
1389         (ilm_element_setup_from_xml): ref the node.
1390
1391 2002-11-20  Richard Hult  <rhult@codefactory.se>
1392
1393         * loudmouth/lm-parser.c (lm_parser_parse): Try to convert the xml
1394           input to from ISO-8859-1 to UTF-8 if it's not valid UTF-8. Not
1395           the perfect fix but it makes a common case work.
1396
1397 2002-11-16  Mikael Hallendal  <micke@codefactory.se>
1398
1399         * loudmouth/lm-client.c (lm_client_disconnect): send end of
1400           stream.
1401
1402 2002-11-15  Richard Hult  <rhult@codefactory.se>
1403
1404         * loudmouth/lm-roster.c (lm_roster_new_from_query_node): Get the
1405           group from the child of the query node.
1406
1407 2002-11-15  Mikael Hallendal  <micke@codefactory.se>
1408
1409         * loudmouth/lm-client.c: no more signals. You now register message
1410           and presence handlers.
1411
1412         * loudmouth/lm-presence.c (presence_get_property): implemented
1413
1414         * loudmouth/lm-client.c: 
1415         - removed the disconnected and connected signals. Now callbacks
1416           passed to lm_client_connect.
1417
1418 2002-11-14  Mikael Hallendal  <micke@codefactory.se>
1419
1420         * loudmouth/lm-presence.c:
1421         (presence_class_init): type and show to be int's.
1422         (presence_set_property): same.
1423
1424         * configure.in: bumped version to 0.1.1
1425
1426         * loudmouth/lm-presence.c (lm_presence_set_status): added.
1427
1428         * loudmouth/lm-element.c (element_class_init): not sure if we want
1429           this but readded the PROP_ERROR.
1430
1431         * loudmouth/lm-client.c (lm_client_authenticate): silent warnings
1432
1433         * loudmouth/lm-iq.c (iq_set_attribute): chain up.
1434
1435         * loudmouth/lm-element.c (element_get_property): implement.
1436
1437         * loudmouth/lm-client.c:
1438         - use callbacks for auth and roster instead of signals.
1439         (client_handle_iq): handle auth and roster
1440         (client_add_callback): added
1441         (client_find_callback): added
1442         (client_remove_callback): added
1443         (lm_client_send): take an extra id argument. If passed the message
1444           id will be copied to this argument.
1445         (lm_client_authenticate): take callback+userdata as arguments.
1446         (lm_client_request_roster): same
1447
1448 2002-10-21  Richard Hult  <rhult@codefactory.se>
1449
1450         * loudmouth/lm-message.c (message_get_xml_string): Escape the
1451           body, fixes server disconnecting on messages containing <>.
1452
1453 2002-10-02  Richard Hult  <rhult@codefactory.se>
1454
1455         * loudmouth/lm-xml-node.c (lm_xml_node_set_value): Don't run
1456           strdown on the node value.
1457