2004-05-28 Mikael Hallendal <micke@imendio.com>
* configure.in:
- Correctly inform whether SSL support was enabled or not.
2004-05-28 Mikael Hallendal <micke@imendio.com>
* src/lm-sha.c: Fixed lvalue cast that wasn't approved by newer GCC.
2004-05-10 Mikael Hallendal <micke@imendio.com>
* configure.in: Enable Mono on request
* mono/*:
- Updated the bindings some.
- Removed the autogenerated, it's such a small API that I figured
it was easier to wrap it manually.
2004-04-30 Mikael Hallendal <micke@imendio.com>
* loudmouth/lm-parser.c (parser_end_node_cb): Unref the message node.
2004-04-29 Mikael Hallendal <micke@imendio.com>
* examples/lm-change-password.c:
* examples/Makefile.am:
- Added a small tool to change the password on a jabber account.
2004-04-27 Mikael Hallendal <micke@imendio.com>
* Ignore on autogenerated files.
2004-04-20 Mikael Hallendal <micke@imendio.com>
* loudmouth/*.[ch]: Updated copyright information
2004-04-20 Mikael Hallendal <micke@imendio.com>
* configure.in: Now depend on Glib 2.4
* loudmouth/lm-queue.[ch]: Removed, use the new GQueue in Glib 2.4
* loudmouth/lm-connection.[ch]: Use GQueue instead of LmQueue.
2004-04-16 Mikael Hallendal <micke@imendio.com>
* configure.in: Added libtasn1 requirement
* loudmouth.spec.in: Added requirement on libtasn if built with SSL.
2004-04-04 Mikael Hallendal <micke@imendio.com>
* loudmouth/lm-sha.c: Commited compile fix from Sjoerd.
2004-03-20 Mikael Hallendal <micke@imendio.com>
* docs/reference/loudmouth-sections.txt:
- Added lm_connection_get_state
- Added LmConnectionState
using System;
using System.Runtime.InteropServices;
namespace Loudmouth {
public class ElementNode {
private IntPtr _obj;
public string Value {
get {
return lm_message_node_get_value (this._obj);
}
set {
lm_message_node_set_value (this._obj, value);
}
}
[DllImport ("libloudmouth-1.so")]
private static extern string lm_message_node_get_value (IntPtr obj);
[DllImport ("libloudmouth-1.so")]
private static extern void lm_message_node_set_value (IntPtr obj, string value);
[DllImport ("libloudmouth-1.so")]
private static extern IntPtr lm_message_node_add_child (IntPtr obj, string name, string value);
[DllImport ("libloudmouth-1.so")]
private static extern void lm_message_node_set_attribute (IntPtr obj, string name, string value);
[DllImport ("libloudmouth-1.so")]
private static extern string lm_message_node_get_attribute (IntPtr obj, string name);
[DllImport ("libloudmouth-1.so")]
private static extern IntPtr lm_message_node_get_child (IntPtr obj, string name);
[DllImport ("libloudmouth-1.so")]
private static extern IntPtr lm_message_node_find_child (IntPtr obj, string name);
public ElementNode (IntPtr obj) {
this._obj = obj;
}
public ElementNode AddChild (string name, string value) {
return new ElementNode(lm_message_node_add_child(this._obj, name, value));
}
public ElementNode GetChild (string name) {
IntPtr cChild = lm_message_node_get_child(this._obj, name);
if (cChild.ToInt32() == 0) {
return null;
}
return new ElementNode(cChild);
}
public ElementNode FindChild (string name) {
IntPtr cChild = lm_message_node_find_child(this._obj, name);
if (cChild.ToInt32() == 0) {
return null;
}
return new ElementNode(cChild);
}
public string this[string data] {
get {
return lm_message_node_get_attribute(this._obj, data);
}
set {
Console.WriteLine("Setting {0} = {1}: {2}", data, value, this._obj);
lm_message_node_set_attribute (this._obj, data, value);
}
}
public override string ToString () {
return "Loudmouth.ElementNode";
}
}
}