chiark / gitweb /
wiringpi module in changelog
[chiark-tcl.git] / dgram / hook.c
index 55b26726b24cf93ca66737a38cfe8d611354d6fa..6f5a157c8020227ddeaa8dc662394e0b47e2ccc1 100644 (file)
@@ -1,5 +1,5 @@
 /* dgram - Tcl extension for udp datagrams
- * Copyright 2006 Ian Jackson
+ * Copyright 2006-2012 Ian Jackson
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
  * General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301, USA.
+ * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "dgram.h"
 
-  Tcl_RegisterObjType(&sockaddr_type);
+CHT_INIT(dgram, CHTI_TYPE(sockaddr_type),
+        CHTI_COMMANDS(cht_dgramsockettoplevel_entries))