# HG changeset patch # User Mikael Hallendal # Date 1207686080 -7200 # Node ID b9d0543a18bc4df097e5d3eb4c351bf86039884d # Parent 013a4b97232215b45d4d701375bdb527eb2dde35 Added some commented out rb_define_methods diff -r 013a4b972322 -r b9d0543a18bc bindings/ruby/rlm-connection.c --- a/bindings/ruby/rlm-connection.c Tue Apr 08 22:14:01 2008 +0200 +++ b/bindings/ruby/rlm-connection.c Tue Apr 08 22:21:20 2008 +0200 @@ -213,6 +213,17 @@ return Qnil; } +VALUE +conn_get_state (VALUE self) +{ + LmConnection *conn; + + Data_Get_Struct (self, LmConnection, conn); + + /* TODO: FIXME */ + return Qnil; +} + void Init_lm_connection (VALUE lm_mLM) { @@ -237,4 +248,20 @@ rb_define_method (lm_mConnection, "jid=", conn_set_jid, 1); rb_define_method (lm_mConnection, "port", conn_get_port, 0); rb_define_method (lm_mConnection, "port=", conn_set_port, 1); + + /* + rb_define_method (lm_mConnection, "ssl", conn_get_ssl, 0); + rb_define_method (lm_mConnection, "ssl=", conn_set_ssl, 1); + rb_define_method (lm_mConnection, "proxy", conn_get_proxy, 0); + rb_define_method (lm_mConnection, "proxy=", conn_set_proxy, 1); + */ + + /* Use one send message and check if there is a block passed? */ + /* + rb_define_method (lm_mConnection, "send", conn_send, 1); + rb_define_method (lm_mConnection, "send_with_reply", conn_send_with_reply, -1); + rb_define_method (lm_mConnection, "send_raw", conn_send_raw, 1); + */ + + rb_define_method (lm_mConnection, "state", conn_get_state, 0); }