2006-03-20 Mikael Hallendal <micke@imendio.com>
[jelmer/loudmouth.git] / ChangeLog
1 2006-03-20  Mikael Hallendal  <micke@imendio.com>
2
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. 
7         - Fixes LM-15.
8
9 2006-03-20  Mikael Hallendal  <micke@imendio.com>
10
11         * Makefile.am:
12         * acinclude.m4:
13         * configure.in:
14         * tests/.cvsignore:
15         * tests/Makefile.am:
16         * tests/test-objects.[ch]:
17         - Started to add support for the Check unit test framework.
18
19 2006-03-20  Mikael Hallendal  <micke@imendio.com>
20
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.
25
26 2006-01-02  Mikael Hallendal  <micke@imendio.com>
27
28         * MAINTAINERS: Added
29
30 2005-08-16  Mikael Hallendal  <micke@imendio.com>
31
32         * NEWS:
33         * configure.in:
34         - Release 1.0.1
35
36         * loudmouth/lm-connection.c: (connection_free):
37         - Unref context if it is set.
38
39 2005-08-14  Mikael Hallendal  <micke@imendio.com>
40
41         * NEWS:
42         * configure.in:
43         - Version 1.0, yiiiha!
44
45 2005-08-12  Mikael Hallendal  <micke@imendio.com>
46
47         * loudmouth/lm-connection.c: (_lm_connection_failed_with_error):
48         - Set state to LM_CONNECTION_STATE_CLOSED if we failed to connect.
49         - Fixes LM-8.
50
51 2005-08-12  Mikael Hallendal  <micke@imendio.com>
52
53         * loudmouth/lm-connection.c:
54         (lm_connection_authenticate_and_block):
55         - Set state correctly.
56         - Fixes LM-7.
57         (lm_connection_send_with_reply_and_block):
58         - Check that connection is open before using it.
59         - Fixes LM-6.
60
61 2005-07-30  Mikael Hallendal  <micke@imendio.com>
62
63         * autogen.sh:
64         * configure.in:
65         * loudmouth/lm-connection.c: (connection_add_watch):
66         - Gtk-doc fixes.
67
68 2005-07-09  Martyn Russell  <mr@gnome.org>
69
70         * loudmouth/lm-connection.c (lm_connection_set_ssl): 
71         - Error when trying to set up SSL knowing it is not supported.
72
73 2005-05-17  Mikael Hallendal  <micke@imendio.com>
74
75         * loudmouth/lm-ssl.c: 
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.
81         
82 2005-05-13  Mikael Hallendal  <micke@imendio.com>
83
84         * loudmouth/lm-ssl.c: (_lm_ssl_read):
85         - Try to fix LM-3 for real this time.
86
87 2005-05-08  Mikael Hallendal  <micke@imendio.com>
88
89         * Release 0.90
90
91         * NEWS:
92         * configure.in:
93         - Updated for 0.90
94
95 2005-05-05  Mikael Hallendal  <micke@imendio.com>
96
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.
103
104 2005-05-05  Mikael Hallendal  <micke@imendio.com>
105
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.
109
110 2005-05-05  Mikael Hallendal  <micke@imendio.com>
111
112         * loudmouth/lm-connection.c: (connection_free):
113         - Unref LmSSL when freeing connection. Reported by Daniel Lavalliere.
114         - Fixes LM-4.
115
116 2005-04-24  Mikael Hallendal  <micke@imendio.com>
117
118         * loudmouth/lm-connection.c: (connection_free):
119         - Free the incoming message queue, reported by Daniel Lavalliere.
120
121 2005-04-24  Mikael Hallendal  <micke@imendio.com>
122
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.
128
129 2005-04-18  Mikael Hallendal  <micke@imendio.com>
130
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.
134
135 2005-03-31  Mikael Hallendal  <micke@imendio.com>
136
137         * Makefile.am:
138         * CONTRIBUTORS: 
139         * loudmouth/lm-connection.c:
140         * loudmouth/lm-ssl.c:
141         - More release work. 
142         - Adding CONTRIBUTORS file.
143
144 2005-03-31  Mikael Hallendal  <micke@imendio.com>
145
146         * Makefile.am:
147         * configure.in:
148         - Removed the mono directory from the release tarball, never finished
149           and should probably be redone from scratch if to be done now.
150
151 2005-03-31  Mikael Hallendal  <micke@imendio.com>
152
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
157
158 2005-02-02  Mikael Hallendal  <micke@imendio.com>
159
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.
163
164 2005-01-27  Martyn Russell  <mr@gnome.org>
165
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.
169
170 2005-01-19  Mikael Hallendal  <micke@imendio.com>
171
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.
177         - Fixes bug #164592
178
179 2004-11-08  Mikael Hallendal  <micke@imendio.com>
180
181         * examples/lm-change-password.c: Added SSL support
182         * examples/lm-register.c: Added SSL support
183
184 2004-10-31  Mikael Hallendal  <micke@imendio.com>
185
186         * Release 0.17.2
187
188         * NEWS: Updated for 0.17.2
189         * configure.in: Bumped version to 0.17.2
190
191 2004-10-30  Mikael Hallendal  <micke@imendio.com>
192
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
196           problems.
197         - Solves bug #154228
198
199 2004-10-22  Mikael Hallendal  <micke@imendio.com>
200
201         reviewed by: <delete if not using a buddy>
202
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:
213         - Include lm-ssl.h
214
215 2004-10-08  Mikael Hallendal  <micke@imendio.com>
216
217         * loudmouth/lm-connection.c: (connection_new_message_cb):
218         - Fix crash on Solaris when running in verbose mode.
219
220 2004-10-05  Mikael Hallendal  <micke@imendio.com>
221
222         * examples/*.c
223         * loudmouth/*.[ch]
224         - s/Imendio HB/Imendio AB/
225
226 2004-10-05  Mikael Hallendal  <micke@imendio.com>
227
228         * docs/reference/loudmouth-sections.txt:
229         - Added missing function
230
231 2004-09-24  Tim Robbins  <tim@teragen.com.au>
232
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.
236
237 2004-09-20  Tollef Fog Heen  <tfheen@raw.no>
238
239         * loudmouth/lm-connection.c:
240           (connection_in_event): Use gsize and not gint, they have
241           different sizes on 64 bit architectures.
242
243         * loudmouth/lm-ssl.c, loudmouth/lm-internals.h:
244           Adjust prototype of _lm_ssl_read to match.
245
246 2004-09-03  Mikael Hallendal  <micke@imendio.com>
247
248         * examples/Makefile.am:
249         * examples/lm-register.c:
250         - Added small tool to register an account
251
252 2004-09-02  Mikael Hallendal  <micke@imendio.com>
253
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
257
258 2004-08-30  Mikael Hallendal  <micke@imendio.com>
259
260         * Released 0.17.1
261         
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
269
270 2004-08-27  Mikael Hallendal  <micke@imendio.com>
271
272         * Released 0.17
273         
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 
279           better.
280
281 2004-08-25  Mikael Hallendal  <micke@imendio.com>
282
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.
290
291 2004-08-09  Mikael Hallendal  <micke@imendio.com>
292
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.
297
298 2004-08-08  Mikael Hallendal  <micke@imendio.com>
299
300         * configure.in: Bumped version to 0.17
301
302 2004-08-08  Mikael Hallendal  <micke@imendio.com>
303
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.
313
314 2004-08-08  Mikael Hallendal  <micke@imendio.com>
315
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".
324
325 2004-08-03  Mikael Hallendal  <micke@imendio.com>
326
327         * Synced from SVN. Going to continue working on it here.
328
329 2004-06-15  Mikael Hallendal  <micke@imendio.com>
330
331         * README: Updated GnuTLS dependency.
332         * mono/*: Some work on the mono bindings.
333
334 2004-05-28  Mikael Hallendal  <micke@imendio.com>
335
336         * configure.in: 
337         - Correctly inform whether SSL support was enabled or not.
338
339 2004-05-28  Mikael Hallendal  <micke@imendio.com>
340
341         * src/lm-sha.c: Fixed lvalue cast that wasn't approved by newer GCC.
342
343 2004-05-10  Mikael Hallendal  <micke@imendio.com>
344
345         * configure.in: Enable Mono on request
346         
347         * mono/*: 
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.
351
352 2004-04-30  Mikael Hallendal  <micke@imendio.com>
353
354         * loudmouth/lm-parser.c (parser_end_node_cb): Unref the message node.
355
356 2004-04-29  Mikael Hallendal  <micke@imendio.com>
357
358         * examples/lm-change-password.c:
359         * examples/Makefile.am:
360         - Added a small tool to change the password on a jabber account.
361
362 2004-04-27  Mikael Hallendal  <micke@imendio.com>
363
364         * Ignore on autogenerated files.
365
366 2004-04-20  Mikael Hallendal  <micke@imendio.com>
367
368         * loudmouth/*.[ch]: Updated copyright information
369
370 2004-04-20  Mikael Hallendal  <micke@imendio.com>
371
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.
375
376 2004-04-16  Mikael Hallendal  <micke@imendio.com>
377
378         * configure.in: Added libtasn1 requirement
379         * loudmouth.spec.in: Added requirement on libtasn if built with SSL.
380
381 2004-04-04  Mikael Hallendal  <micke@imendio.com>
382
383         * loudmouth/lm-sha.c: Commited compile fix from Sjoerd.
384
385 2004-03-20  Mikael Hallendal  <micke@imendio.com>
386
387         * docs/reference/loudmouth-sections.txt:
388         - Added lm_connection_get_state
389         - Added LmConnectionState
390
391 2004-03-17  Mikael Hallendal  <micke@imendio.com>
392
393         * Synced from SVN.
394
395         * Released 0.16
396         
397         * configure.in: Bumped to 0.16 
398         * NEWS: Updated for 0.16
399  
400 2004-03-17  Mikael Hallendal  <micke@imendio.com>
401
402         * docs/reference/*: Updated documentation.
403         * loudmouth/*: Fixed the documentation in a couple of places. 
404
405 2004-03-17  Mikael Hallendal  <micke@imendio.com>
406
407         * loudmouth/lm-connection.[ch]
408         (lm_connection_new_with_context): 
409         - Added to be able to give what context the connection should be 
410           running in. 
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 
414           threads.
415
416 2004-03-17  Mikael Hallendal  <micke@imendio.com>
417
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 
427           proxy support.
428
429 2004-03-17  Mikael Hallendal  <micke@imendio.com>
430
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/
435
436 2004-02-05  Mikael Hallendal  <micke@imendio.com>
437
438         * README: Updated information about website and bug reporting
439
440 2004-01-29  Richard Hult  <richard@imendio.com>
441
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.
446
447 2004-01-23  Mikael Hallendal  <micke@imendio.com>
448         
449         * Release 0.15.1
450
451         * NEWS: 
452         * configure.in:
453         - Updated to 0.15.1
454
455 2004-01-22  Frederic Crozat  <fcrozat@mandrakesoft.com>
456
457         * configure.in:
458         * loudmouth/lm-ssl.c: (ssl_verify_certificate):
459         Don't use deprecated function of gnutls.
460         Now requires gnutls >= 1.0.0
461
462 2004-01-21  Mikael Hallendal  <micke@imendio.com>
463
464         * Release 0.15.
465
466 2004-01-21  Mikael Hallendal  <micke@imendio.com>
467
468         * Makefile.am:
469         * configure.in:
470         - Removed the mono bindings for now.
471
472 2004-01-21  Richard Hult  <richard@imendio.com>
473
474         * loudmouth.spec.in: 
475         - The library changed name, update to libloudmouth-1.la.
476         
477 2004-01-21  Mikael Hallendal  <micke@imendio.com>
478
479         * docs/reference/tmpl/lm-ssl.sgml:
480         * loudmouth/lm-ssl.c:
481         - Added API documentation
482
483 2004-01-21  Mikael Hallendal  <micke@imendio.com>
484
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
492
493 2004-01-21  Mikael Hallendal  <micke@imendio.com>
494
495         * Makefile.am:
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.
502         * mono/Makefile:
503         * mono/Makefile.am:
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.
509
510 2004-01-16  Mikael Hallendal  <micke@imendio.com>
511
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.
517         - Fixed bug #130449
518
519 2004-01-15  Mikael Hallendal  <micke@imendio.com>
520
521         * loudmouth/Makefile.am:
522         - Added lm-ssl.[ch]
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:
529         - Added _lm_ssl*
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.
536
537 2004-01-15  Mikael Hallendal  <micke@imendio.com>
538
539         * loudmouth/lm-connection.c:
540         - Added Sjoerd Simons to copyright list.
541
542 2004-01-15  Mikael Hallendal  <micke@imendio.com>
543
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:
554         - include config.h
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.
561
562 2004-01-08  Richard Hult  <richard@imendio.com>
563
564         * loudmouth/lm-connection.c (connection_timeout_check_open):
565         Remove debug output.
566
567         * acinclude.m4: Add gmtoff check.
568
569         * loudmouth/lm-utils.c (lm_utils_get_localtime): Use tm_gmtoff if
570         available.
571
572 2004-01-06  Mikael Hallendal  <micke@imendio.com>
573
574         * loudmouth/lm-connection.c:
575         - Now works with sync open again.
576         * loudmouth/lm-utils.c: (_lm_utils_free_callback):
577         - Work with NULL
578
579 2004-01-05  Mikael Hallendal  <micke@imendio.com>
580
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.
584
585 2003-12-27  Mikael Hallendal  <micke@imendio.com>
586
587         * loudmouth/lm-connection.[ch]: 
588         (connection_verify_certificate),
589         (connection_do_open), 
590         (connection_do_close), 
591         (connection_in_event),
592         (connection_send),
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
598
599 2003-12-27  Mikael Hallendal  <micke@imendio.com>
600
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),
607         (lm_connection_new),
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.
617
618 2003-12-19  Mikael Hallendal  <micke@imendio.com>
619
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
625         - set state
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
634
635 2003-12-15  Mikael Hallendal  <micke@imendio.com>
636
637         * README: Updated information about bug reporting
638
639 2003-12-15  Mikael Hallendal  <micke@imendio.com>
640
641         * loudmouth/lm-connection.c:
642         - Fixed issue with the SSL parts. Patch from Colin Walters
643
644 2003-11-20  Ross Burton  <ross@burtonini.com>
645
646         * loudmouth/lm-message-node.h:
647         - Mark the private members how gtk-doc wants it.
648
649         * loudmouth/lm-message-node.c:
650         - Fix comment typos and document more parameters.
651
652         * loudmouth/lm-connection.c: Fix comment typos.
653
654         * docs/reference/loudmouth-sections.txt: 
655         - Removed a non-existent function.
656
657         * docs/reference/tmpl/lm-connection.sgml: Fix some typos.
658
659         * docs/reference/tmpl/lm-message-node.sgml:
660         - Document raw_node, and remove private fields.
661
662         * docs/reference/tmpl/lm-message.sgml: gtk-doc did this itself...
663
664 2003-11-16  Mikael Hallendal  <micke@imendio.com>
665
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.
670
671 2003-11-11  Mikael Hallendal  <micke@imendio.com>
672
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.
679
680 2003-11-11  Mikael Hallendal  <micke@imendio.com>
681
682         * Makefile.am: 
683         - Added README.WIN32 so it will be distributed next release.
684
685 2003-10-13  Mikael Hallendal  <micke@imendio.com>
686
687         * configure.in: Bumped version to 0.14.1.99
688
689         * loudmouth/lm-message.c: 
690         (lm_message_new): Always set an ID on the message.
691
692 2003-10-13  Mikael Hallendal  <micke@imendio.com>
693  
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.
697
698         * python/*: Johan Dahlin added a first cut of python bindings, yay him!
699
700 2003-10-13  Mikael Hallendal  <micke@imendio.com>
701
702         * NEWS: Updated for 0.14.1
703         
704         * configure.in: Bumped to 0.14.1
705         
706         * loudmouth/lm-connection.c: (connection_in_event): check if bytes_read
707           equals GNUTLS_E_AGAIN, fixes crash. Patch by Marinus Schraal.
708
709 2003-10-03  Mikael Hallendal  <micke@imendio.com>
710
711         * Release 0.14
712         
713         * NEWS: Updated for 0.14
714         
715         * configure.in: Bumped to 0.14
716         
717 2003-10-02  Mikael Hallendal  <micke@imendio.com>
718
719         * loudmouth/lm-connection.c: (connection_free):
720         - Free the message handlers and message handler list when free'ing 
721           the connection.
722
723 2003-10-01  Mikael Hallendal  <micke@imendio.com>
724
725         * configure.in: Tweaked the --with-ssl option a bit.
726         
727         * loudmouth.spec.in: 
728         - Added a with_ssl to be able to easily turn of GNU Tls support.
729         - Fixes LM-14
730
731 2003-10-01  Mikael Hallendal  <micke@imendio.com>
732
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!
737
738 2003-10-01  Mikael Hallendal  <micke@imendio.com>
739
740         * loudmouth/Makefile.am: 
741         - added lm-queue.[ch]
742           
743         * loudmouth/lm-queue.[ch]: copied and extended from GQueue.
744         
745         * loudmouth/lm-connection.c: 
746         - Use LmQueue instead of GQueue
747         (lm_connection_open_and_block): Better handling of the queue.
748         
749         (lm_connection_send_with_reply_and_block): 
750         - Fixed a bug causing replies to be over looked.
751
752 2003-10-01  Mikael Hallendal  <micke@imendio.com>
753
754         * README.WIN32, win32-config.h: 
755         - Added information about how to build on Windows. Fixes LM-12
756           
757 2003-08-24  Martyn Russell  <ginxd@btopenworld.com>
758
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...
763         
764 2003-08-15  Mikael Hallendal  <micke@imendio.com>
765
766         * Release 0.13.2
767
768         * configure.in: Bumped to 0.13.2
769         * NEWS: Updated for 0.13.2
770
771         * loudmouth/lm-parser.c: (parser_end_node_cb):
772         - Don't crash on </stream:stream>. Fixes bug #117952
773
774 2003-08-05  Mikael Hallendal  <micke@imendio.com>
775
776         * Release 0.13.1
777
778         * NEWS: Updated for 0.13.1
779         * configure.in: Bumped to 0.13.1
780
781 2003-08-05  Mikael Hallendal  <micke@imendio.com>
782
783         * acinclude.m4: Added GnuTLS-macro from GnuTLS-distribution.
784  
785         * configure.in: Added comment if SSL support disabled.
786
787         * loudmouth.spec.in: Added Build-requirment on gtk-doc.
788
789         * Release 0.13
790         
791         * NEWS: Updated for 0.13  
792         * configure.in: Bumped to 0.13
793
794 2003-08-04  Mikael Hallendal  <micke@imendio.com>
795
796         * README: 
797         - Added comment about GnuTLS and --with-included-libtasn1.
798         - Fixes LM-7 and bug #117801
799
800 2003-08-04  Mikael Hallendal  <micke@imendio.com>
801
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.
806
807         * loudmouth/Makefile.am: Use -DRUNTIME_ENDIAN, fixes LM-8, bug #118502.
808
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.
816
817         * configure.in:
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. 
821
822 2003-07-29  Mikael Hallendal  <micke@imendio.com>
823
824         * loudmouth/lm-message.[ch]:
825         - Added LM_MESSAGE_SUB_TYPE_NORMAL to be a sub type that can actually 
826           be set.
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.
829
830 2003-07-17  Mikael Hallendal  <micke@imendio.com>
831
832         * Release 0.12
833
834         * NEWS: Updated for 0.12
835         * configure.in: Bumped to 0.12
836
837 2003-07-17  Mikael Hallendal  <micke@imendio.com>
838
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
849         - Fixes cf-bug #509
850
851 2003-07-17  Mikael Hallendal  <micke@imendio.com>
852
853         * configure.in: Added GNUTLS_REQUIRED
854         * loudmouth.spec.in: Added gnutls dependency in RPM's.
855
856 2003-07-17  Mikael Hallendal  <micke@imendio.com>
857
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
863         
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
871
872 2003-07-14  Mikael Hallendal  <micke@imendio.com>
873
874         * Release 0.11
875
876         * configure.in: Bumped to 0.11
877         * NEWS: Updated for 0.11
878         
879 2003-07-12  Mikael Hallendal  <micke@imendio.com>
880
881         * configure.in: 
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.
887
888 2003-07-07  Mikael Hallendal  <micke@imendio.com>
889
890         * Release 0.10.1
891
892         * NEWS: Updated for 0.10.1
893         * configure.in: Bumped version to 0.10.1
894
895 2003-07-07  Mikael Hallendal  <micke@imendio.com>
896
897         * loudmouth/lm-connection.c: moved the includes around a bit so that 
898           it builds on FreeBSD without problems.
899
900 2003-06-26  Mikael Hallendal  <micke@imendio.com>
901
902         * Released 0.10
903         * configure.in: Changed version to 0.10
904         * NEWS: Added 0.10 news.
905         
906 2003-06-25  Mikael Hallendal  <micke@imendio.com>
907
908         * configure.in: Bumped to 0.9.1
909         * loudmouth.spec.in: Changed the URL to the project site.
910
911 2003-06-24  Mikael Hallendal  <micke@imendio.com>
912
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.
918
919 2003-06-15  Mikael Hallendal  <micke@imendio.com>
920
921         * loudmouth/lm-message.c:
922         * loudmouth/lm-message.h:
923         (lm_message_get_sub_type): Return LmMessageSubType.
924           Found by Alexander Saltanov
925
926 2003-06-13  Mikael Hallendal  <micke@imendio.com>
927
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
938
939 2003-06-11  Mikael Hallendal  <micke@codefactory.se>
940
941         * docs/reference/loudmouth-sections.txt: Added new functions
942
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
948         
949         * loudmouth/lm-message-node.h: Added new functions.
950
951 2003-04-26  Mikael Hallendal  <micke@codefactory.se>
952
953         * loudmouth.spec.in: Enable gtk-doc
954  
955         * Released 0.9.1
956
957 2003-04-17  Mikael Hallendal  <micke@codefactory.se>
958
959         * docs/reference/Makefile.am: Make --disable-gtk-doc not try to 
960           install the documents :) Fixes #633, patch by Kevin Dougherty.
961         
962         * loudmouth/lm-debug.c: Make build work with --disable-debug, 
963           fixes #634, patch by Kevin Dougherty.
964
965 2003-04-11  Mikael Hallendal  <micke@codefactory.se>
966
967         * NEWS: More updates
968         
969         * configure.in: Bumped version to 0.9
970         
971         * loudmouth.spec.in: Fixed
972         
973         * loudmouth/lm-connection.c:
974         (lm_connection_send_with_reply_and_block): Removed debug output.
975         
976 2003-04-10  Mikael Hallendal  <micke@codefactory.se>
977
978         * NEWS: Updated for upcoming 0.9 release.
979         
980 2003-04-07  Mikael Hallendal  <micke@codefactory.se>
981
982         * README: Added information about debug output.
983         
984         * loudmouth/lm-connection.c: 
985         (connection_in_event): Use a define for IN_BUFFER_SIZE
986
987 2003-04-07  Mikael Hallendal  <micke@codefactory.se>
988
989         * README:
990         * loudmouth/lm-connection.c: (connection_in_event):
991
992 2003-04-07  Mikael Hallendal  <micke@codefactory.se>
993
994         * configure.in:
995         - Added debug flag.
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
1002
1003 2003-04-05  Mikael Hallendal  <micke@codefactory.se>
1004
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 
1010           attribute.
1011
1012 2003-04-01  Mikael Hallendal  <micke@codefactory.se>
1013
1014         * loudmouth/lm-message.c:
1015         (lm_message_get_node): added, using for bindings.
1016
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#.
1021
1022 2003-03-24  Mikael Hallendal  <micke@codefactory.se>
1023
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.
1035
1036 2003-03-23  Mikael Hallendal  <micke@codefactory.se>
1037
1038         * loudmouth/lm-connection.c:
1039         - Now uses a queue for all incoming messages and a source that
1040           polls the queue.
1041         (connection_do_close): added, unrefs
1042           io_channel and sets connection to be disconnected.
1043         (connection_do_open): renamed from connection_connect
1044
1045 2003-03-14  Mikael Hallendal  <micke@codefactory.se>
1046
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).
1056
1057         * configure.in: bumped to 0.8.99
1058         
1059 2003-03-13  Mikael Hallendal  <micke@codefactory.se>
1060
1061         * autogen.sh (need_configure_in):
1062         - fix to autogen on solaris. Reported by stric.
1063
1064         * configure.in: 
1065         - Added check for -lnsl and -lsocket needed to link on solaris.
1066
1067         * Released 0.8
1068
1069         * configure.in: bumped version to 0.8
1070
1071         * README (Introduction): added some information before the 0.8
1072           release.
1073
1074         * loudmouth/lm-connection.c:
1075         (connection_error_event): call disconnect callback.
1076         (connection_hup_event): same.
1077         (lm_connection_set_disconnect_function): added.
1078
1079 2003-03-05  Mikael Hallendal  <micke@codefactory.se>
1080
1081         * loudmouth/*.h: prettified headers.
1082         
1083         * docs/reference/*: Updating docs. Now at 100%!
1084
1085 2003-03-03  Mikael Hallendal  <micke@codefactory.se>
1086
1087         * loudmouth/lm-message-node.h:
1088         - removed LmMessageNodeFunc, wasn't used anywhere.
1089
1090         * docs/reference/*: Updating docs. At 88% now... sooon!
1091
1092         * Changed license (again), this time back to LGPL. And it'll stay
1093           there :)
1094         
1095 2003-02-27  Mikael Hallendal  <micke@codefactory.se>
1096
1097         * Worked alot on documenting.
1098         
1099 2003-02-25  Mikael Hallendal  <micke@codefactory.se>
1100
1101         * loudmouth/lm-connection.c (connection_in_event): 
1102         - Try to solve #553
1103
1104 2003-02-24  Mikael Hallendal  <micke@codefactory.se>
1105
1106         * loudmouth/lm-sha.c: don't use stdint.h, instead use the g*
1107           versions of different int lengths. Fixes #536
1108
1109 2003-02-08  Mikael Hallendal  <micke@codefactory.se>
1110
1111         * src/*.c: Started to document
1112
1113         * src/lm-result.h: Removed
1114
1115         * src/lm-error.[ch]: Added
1116
1117         * src/lm-connection.[ch]: 
1118         - Use GErrors for reporting errors.
1119         - Fixes #510
1120
1121         * docs/reference/Makefile.am: Don't link against GObject.
1122
1123 2003-02-06  Mikael Hallendal  <micke@codefactory.se>
1124
1125         * loudmouth/lm-connection.c (connection_connect): send the opening
1126           xml tag stating that we'll use encoding utf-8.
1127
1128 2003-02-02  Mikael Hallendal  <micke@codefactory.se>
1129
1130         * loudmouth/lm-message.c:
1131         - fixes #504
1132         (lm_message_new): take to-argument
1133         (lm_message_new_with_sub_type): take to-argument
1134
1135         * loudmouth/test-lm.c (main): don't init GType, not used anymore..
1136
1137         * lm-message-handler.c:
1138         - include files we actually need :)
1139
1140         * loudmouth/lm-connection.c: don't include removed files.
1141
1142         * loudmouth/Makefile.am:
1143         - Removed all the stuff that generated the marshallers.
1144
1145         * configure.in: 
1146         - removed gobject deps
1147         - removed glib-genmarshal deps
1148
1149         * loudmouth-1.0.pc.in (Requires): removed all deps except glib.
1150
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.
1154
1155         * configure.in: Don't require libgtcpsocket
1156
1157         * loudmouth/lm-connection.c: Don't use libgtcpsocket for
1158           communication. Now uses a GIOChannel.
1159
1160         * loudmouth/*.c:
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.
1166
1167 2003-02-01  Mikael Hallendal  <micke@codefactory.se>
1168
1169         * loudmouth/lm-sha.c (lm_sha_hash): don't print the digest.
1170
1171 2003-01-31  Mikael Hallendal  <micke@codefactory.se>
1172
1173         * *: changed the license to the same one used in RoadRunner.
1174
1175         * loudmouth/lm-sha.c:
1176         - switched the SHA implementation for one with BSD license.
1177
1178         * loudmouth/lm-connection.c (lm_connection_authenticate): 
1179         - lm_sha_hash now returns a const gchar *
1180
1181
1182 2003-01-30  Mikael Hallendal  <micke@codefactory.se>
1183
1184         * docs/*: Added gtk-doc support. Now I just have to write API docs
1185           for everything :)
1186
1187         * loudmouth/lm-helper.[ch]: Removed.
1188         
1189 2003-01-30  Mikael Hallendal  <micke@codefactory.se>
1190
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.
1198
1199 2003-01-29  Mikael Hallendal  <micke@codefactory.se>
1200
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.
1208         
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
1216
1217         * loudmouth/lm-message-node.c (lm_message_node_get_child): 
1218         - remove variable that caused warning.
1219
1220         * configure.in: updated version to 0.2
1221
1222 2003-01-27  Mikael Hallendal <micke@codefactory.se>
1223
1224         * src/*: 
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
1230           kinds of messages.
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.
1235                 
1236 2003-01-27  Anders Carlsson  <andersca@codefactory.se>
1237
1238         * autogen.sh (FILE): Use lm-message.c for testing.
1239
1240 2003-01-26  Mikael Hallendal  <micke@codefactory.se>
1241
1242         * loudmouth/*: Added lm-helper which will create elements to send
1243           through client.
1244         
1245 2003-01-25  Mikael Hallendal  <micke@codefactory.se>
1246
1247         * loudmouth/lm-marshal.list (VOID): cleaned up old marshallers.
1248
1249         * loudmouth/lm-element.c (lm_element_get_type_string): added.
1250
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
1255           returned TRUE.
1256
1257 2003-01-21  Mikael Hallendal  <micke@codefactory.se>
1258
1259         * configure.in: don't use libgtcpsocket 1.0, use 0.1.0
1260
1261 2002-12-10  Mikael Hallendal  <micke@codefactory.se>
1262
1263         * loudmouth/lm-util.c:
1264         (lm_util_get_localtime): Added
1265         (lm_util_case_strstr): Removed
1266
1267         * loudmouth/lm-x.h: Removed.
1268
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
1276
1277         * loudmouth/Makefile.am (libloudmouthinclude_HEADERS): 
1278         - install lm_util.h
1279
1280 2002-12-03  Mikael Hallendal  <micke@codefactory.se>
1281
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".
1288
1289 2002-11-29  Richard Hult  <rhult@codefactory.se>
1290
1291         * loudmouth/lm-client.c (lm_client_subscribe_jid): Wrap g_print
1292         with debug macro.
1293         (lm_client_unsubscribe_jid): Likewise.
1294         (lm_client_connect): Add debug print.
1295         (client_connect_done_cb): Add debug print.
1296
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
1300         of the stream.
1301
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
1304         crashes.
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
1309         </stream>.
1310
1311 2002-11-29  Mikael Hallendal  <micke@codefactory.se>
1312
1313         * loudmouth/lm-node.c (node_free): don't free directly, use
1314         ref-counts.
1315         (lm_node_add_child_node): ref the child node.
1316
1317         * loudmouth/lm-element.c:
1318         (lm_element_unref): implemented
1319         (lm_element_set_tree): ref the tree.
1320
1321 2002-11-29  Mikael Hallendal <micke@codefactory.se>
1322
1323         * loudmouth/lm-client.c: Changed default_foo_handler to
1324           foo_handler.
1325         
1326 2002-11-27  Richard Hult  <rhult@codefactory.se>
1327
1328         * loudmouth/lm-client.c (client_handle_iq): Fix warning by making
1329         id const.
1330
1331 2002-11-26  Richard Hult  <rhult@codefactory.se>
1332
1333         * loudmouth/lm-client.c (client_connection_closed_cb): 
1334         - Set is_connected to FALSE.
1335
1336 2002-11-26  Mikael Hallendal  <micke@codefactory.se>
1337
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.
1341         
1342 2002-11-25  Mikael Hallendal  <micke@codefactory.se>
1343
1344         * loudmouth/lm-element.c (element_get_property): fixed error
1345           causing object_get ("from") trying to get "to" value.
1346
1347 2002-11-24  Richard Hult  <rhult@codefactory.se>
1348
1349         * loudmouth/lm-client.c (client_handle_presence): 
1350         - Try to implement subscription requests.
1351
1352         * loudmouth/test-lm.c (main): Fix more callback types.
1353
1354         * loudmouth/lm-client.h: 
1355         - Remove lm_client_set_subscription_request_handler, unused.
1356
1357         * loudmouth/test-lm.c (main): Don't cast callbacks with (Type*).
1358
1359         * loudmouth/lm-client.c: 
1360         - Change function prototypes from *callback to callback.
1361
1362         * loudmouth/lm-client.h: Remove signal entry from object struct 
1363           and change function prototypes to match the definitions.
1364         
1365 2002-11-23  Richard Hult  <rhult@codefactory.se>
1366
1367         * loudmouth/lm-client.h: Add lm_client_get_agents.
1368
1369         * configure.in: Add compiler warnings logic but leave it disabled
1370           since the sha stuff is not very warning free.
1371
1372         * loudmouth/lm-node.c (lm_node_get_string): Escape the body string
1373           so we generate valid xml when sending things like '<', '>', and 
1374           '&'.
1375
1376 2002-11-23  Mikael Hallendal  <micke@codefactory.se>
1377
1378         * loudmouth/lm-node.c (lm_node_unlink): added
1379
1380         * loudmouth/lm-presence.c (presence_set_property): don't set
1381           <show>normal</show>
1382
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.
1387
1388         * loudmouth/lm-element.c:
1389         (lm_element_add_child): added :)
1390         (lm_element_find_child): added
1391
1392         * loudmouth/lm-client.c (client_connection_closed_cb): call
1393           disconnect callback.
1394
1395         * loudmouth/lm-sha.[ch]: added, found in jabberd2, remember to
1396           check license issues with this.
1397
1398         * loudmouth/lm-client.c:
1399         (lm_client_authenticate): use digest for sending password instead
1400           of clear text.
1401
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.
1407
1408         * loudmouth/lm-iq-helper.[ch]: removed, not needed anymore.
1409
1410         * loudmouth/lm-element.c (lm_element_add_child_node): added, this
1411           can be used to add any node to any element.
1412
1413         * loudmouth/lm-presence.c (presence_set_property): priority is an
1414           int, not string.
1415
1416         * loudmouth/lm-node.c (lm_node_add_child_node): rethinking, don't
1417           ref.
1418         
1419 2002-11-22  Mikael Hallendal  <micke@codefactory.se>
1420
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.
1427
1428         * loudmouth/lm-iq.c (lm_iq_new): take the type as argument.
1429
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.
1434
1435         * loudmouth/*: Changes LmXMLNode -> LmNode
1436
1437         * loudmouth/*:
1438         - Using LmXMLNode internally in all elements
1439         - Use lm_message_new, lm_iq_new, lm_presence new instead of
1440           g_object_new
1441         
1442         * loudmouth/lm-presence.c:
1443         (presence_get_xml_string): set to='' if it exists
1444
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
1449
1450         * loudmouth/lm-parser.c:
1451         (parser_end_element_cb): just unref the node, don't free it.
1452
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
1457
1458         * loudmouth/lm-element.[ch]: 
1459         (lm_element_get_tree): Added, returns the XML tree for the
1460           element.
1461         (ilm_element_setup_from_xml): ref the node.
1462
1463 2002-11-20  Richard Hult  <rhult@codefactory.se>
1464
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.
1468
1469 2002-11-16  Mikael Hallendal  <micke@codefactory.se>
1470
1471         * loudmouth/lm-client.c (lm_client_disconnect): send end of
1472           stream.
1473
1474 2002-11-15  Richard Hult  <rhult@codefactory.se>
1475
1476         * loudmouth/lm-roster.c (lm_roster_new_from_query_node): Get the
1477           group from the child of the query node.
1478
1479 2002-11-15  Mikael Hallendal  <micke@codefactory.se>
1480
1481         * loudmouth/lm-client.c: no more signals. You now register message
1482           and presence handlers.
1483
1484         * loudmouth/lm-presence.c (presence_get_property): implemented
1485
1486         * loudmouth/lm-client.c: 
1487         - removed the disconnected and connected signals. Now callbacks
1488           passed to lm_client_connect.
1489
1490 2002-11-14  Mikael Hallendal  <micke@codefactory.se>
1491
1492         * loudmouth/lm-presence.c:
1493         (presence_class_init): type and show to be int's.
1494         (presence_set_property): same.
1495
1496         * configure.in: bumped version to 0.1.1
1497
1498         * loudmouth/lm-presence.c (lm_presence_set_status): added.
1499
1500         * loudmouth/lm-element.c (element_class_init): not sure if we want
1501           this but readded the PROP_ERROR.
1502
1503         * loudmouth/lm-client.c (lm_client_authenticate): silent warnings
1504
1505         * loudmouth/lm-iq.c (iq_set_attribute): chain up.
1506
1507         * loudmouth/lm-element.c (element_get_property): implement.
1508
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
1519
1520 2002-10-21  Richard Hult  <rhult@codefactory.se>
1521
1522         * loudmouth/lm-message.c (message_get_xml_string): Escape the
1523           body, fixes server disconnecting on messages containing <>.
1524
1525 2002-10-02  Richard Hult  <rhult@codefactory.se>
1526
1527         * loudmouth/lm-xml-node.c (lm_xml_node_set_value): Don't run
1528           strdown on the node value.
1529