File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1210,6 +1210,16 @@ static PyObject *pyrf_evlist__open(struct pyrf_evlist *pevlist,
1210
1210
return Py_None ;
1211
1211
}
1212
1212
1213
+ static PyObject * pyrf_evlist__close (struct pyrf_evlist * pevlist )
1214
+ {
1215
+ struct evlist * evlist = & pevlist -> evlist ;
1216
+
1217
+ evlist__close (evlist );
1218
+
1219
+ Py_INCREF (Py_None );
1220
+ return Py_None ;
1221
+ }
1222
+
1213
1223
static PyObject * pyrf_evlist__config (struct pyrf_evlist * pevlist )
1214
1224
{
1215
1225
struct record_opts opts = {
@@ -1268,6 +1278,12 @@ static PyMethodDef pyrf_evlist__methods[] = {
1268
1278
.ml_flags = METH_VARARGS | METH_KEYWORDS ,
1269
1279
.ml_doc = PyDoc_STR ("open the file descriptors." )
1270
1280
},
1281
+ {
1282
+ .ml_name = "close" ,
1283
+ .ml_meth = (PyCFunction )pyrf_evlist__close ,
1284
+ .ml_flags = METH_NOARGS ,
1285
+ .ml_doc = PyDoc_STR ("close the file descriptors." )
1286
+ },
1271
1287
{
1272
1288
.ml_name = "poll" ,
1273
1289
.ml_meth = (PyCFunction )pyrf_evlist__poll ,
You can’t perform that action at this time.
0 commit comments