summaryrefslogtreecommitdiff
path: root/python/string.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/string.cc')
-rw-r--r--python/string.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/python/string.cc b/python/string.cc
index 7564899b..5ad7fddb 100644
--- a/python/string.cc
+++ b/python/string.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: string.cc,v 1.1 2001/02/20 06:32:01 jgg Exp $
+// $Id: string.cc,v 1.2 2001/02/23 05:46:02 jgg Exp $
/* ######################################################################
string - Mappings for the string functions that are worthwile for
@@ -93,4 +93,14 @@ PyObject *StrStrToTime(PyObject *Self,PyObject *Args)
return Py_BuildValue("i",Result);
}
+
+PyObject *StrCheckDomainList(PyObject *Self,PyObject *Args)
+{
+ char *Host = 0;
+ char *List = 0;
+ if (PyArg_ParseTuple(Args,"ss",&Host,&List) == 0)
+ return 0;
+ return Py_BuildValue("i",CheckDomainList(Host,List));
+}
+
/*}}}*/