diff options
author | Ryo Nakamura <upa@haeena.net> | 2023-03-15 22:03:14 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2023-03-15 22:03:14 +0900 |
commit | a086e6a15499d20c4116a784cc68eb1c6b5a5eff (patch) | |
tree | 90c9802c028047db8bf47281c275ee1dabd4d603 /src/pymscp.c | |
parent | 3bce4ec277d18a673a8b9923d0d7edf903c37460 (diff) |
rename mscp_prepare to mscp_scan
Diffstat (limited to 'src/pymscp.c')
-rw-r--r-- | src/pymscp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pymscp.c b/src/pymscp.c index 0a0642e..1a55a3d 100644 --- a/src/pymscp.c +++ b/src/pymscp.c @@ -268,7 +268,7 @@ static PyObject *wrap_mscp_set_dst_path(PyObject *self, PyObject *args, PyObject return Py_BuildValue(""); } -static PyObject *wrap_mscp_prepare(PyObject *self, PyObject *args, PyObject *kw) +static PyObject *wrap_mscp_scan(PyObject *self, PyObject *args, PyObject *kw) { char *keywords[] = { "m", NULL }; unsigned long long addr; @@ -283,7 +283,7 @@ static PyObject *wrap_mscp_prepare(PyObject *self, PyObject *args, PyObject *kw) return NULL; } - if (mscp_prepare(m) < 0) { + if (mscp_scan(m) < 0) { PyErr_Format(PyExc_RuntimeError, mscp_get_error()); return NULL; } @@ -437,7 +437,7 @@ static PyMethodDef pymscpMethods[] = { METH_VARARGS | METH_KEYWORDS, NULL }, { - "mscp_prepare", (PyCFunction)wrap_mscp_prepare, + "mscp_scan", (PyCFunction)wrap_mscp_scan, METH_VARARGS | METH_KEYWORDS, NULL }, { |