chiark / gitweb /
copyright dates
[chiark-tcl.git] / dgram / hook.c
index 55b26726b24cf93ca66737a38cfe8d611354d6fa..da0ab7efac5929bc0575cfea30986d034d9baa8e 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
@@ -17,5 +17,7 @@
  * 02110-1301, USA.
  */
 
+#include "dgram.h"
 
-  Tcl_RegisterObjType(&sockaddr_type);
+CHT_INIT(dgram, CHTI_TYPE(sockaddr_type),
+        CHTI_COMMANDS(cht_dgramsockettoplevel_entries))