Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Darren Ng
pyalpm
Commits
c35beb36
Verified
Commit
c35beb36
authored
Jun 24, 2021
by
Jelle van der Waa
🚧
Browse files
Remove unrequired PyCFunction casts
parent
ba2adc15
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/db.c
View file @
c35beb36
...
...
@@ -244,7 +244,7 @@ static struct PyMethodDef db_methods[] = {
"get contents of a group
\n
"
"args: a group name (string)
\n
"
"returns: a tuple (group name, list of packages)"
},
{
"update"
,
(
PyCFunction
)
pyalpm_db_update
,
METH_VARARGS
|
METH_KEYWORDS
,
{
"update"
,
pyalpm_db_update
,
METH_VARARGS
|
METH_KEYWORDS
,
"update a database from its url attribute
\n
"
"args: force (update even if DB is up to date, boolean)
\n
"
"returns: True if an update has been done"
},
...
...
src/handle.c
View file @
c35beb36
...
...
@@ -183,7 +183,7 @@ static struct _alpm_cb_getset cb_getsets[N_CALLBACKS] = {
* stored in static variables, and the reference count is
* increased accordingly.
*
* These Python functions are wrapped into C functions
* These Python functions are wrapped into C functions
* that are passed to libalpm.
*/
PyObject
*
global_py_callbacks
[
N_CALLBACKS
];
...
...
@@ -316,7 +316,7 @@ struct PyGetSetDef pyalpm_handle_getset[] = {
static
PyMethodDef
pyalpm_handle_methods
[]
=
{
/* Transaction initialization */
{
"init_transaction"
,
(
PyCFunction
)
pyalpm_trans_init
,
METH_VARARGS
|
METH_KEYWORDS
,
{
"init_transaction"
,
pyalpm_trans_init
,
METH_VARARGS
|
METH_KEYWORDS
,
"Initializes a transaction.
\n
"
"Arguments:
\n
"
" nodeps, force, nosave, nodepversion, cascade, recurse,
\n
"
...
...
@@ -326,7 +326,7 @@ static PyMethodDef pyalpm_handle_methods[] = {
},
/* Package load */
{
"load_pkg"
,
(
PyCFunction
)
pyalpm_package_load
,
METH_VARARGS
|
METH_KEYWORDS
,
{
"load_pkg"
,
pyalpm_package_load
,
METH_VARARGS
|
METH_KEYWORDS
,
"loads package information from a tarball"
},
/* Database members */
...
...
src/transaction.c
View file @
c35beb36
...
...
@@ -439,7 +439,7 @@ static struct PyMethodDef pyalpm_trans_methods[] = {
"append a package addition to transaction"
},
{
"remove_pkg"
,
pyalpm_trans_remove_pkg
,
METH_VARARGS
,
"append a package removal to transaction"
},
{
"sysupgrade"
,
(
PyCFunction
)
pyalpm_trans_sysupgrade
,
METH_VARARGS
|
METH_KEYWORDS
,
{
"sysupgrade"
,
pyalpm_trans_sysupgrade
,
METH_VARARGS
|
METH_KEYWORDS
,
"set the transaction to perform a system upgrade
\n
"
"args:
\n
"
" transaction (boolean) : whether to enable downgrades
\n
"
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment