Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
52284527
...
52284527e761d8b6ffa8c15196edc18e8b061356
authored
2009-03-25 20:24:48 +0100
by
Wojciech Polak
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Return int from mu_py_init_*()
1 parent
2182f6e0
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
53 additions
and
63 deletions
include/mailutils/python.h
python/libmu_py/address.c
python/libmu_py/attribute.c
python/libmu_py/auth.c
python/libmu_py/body.c
python/libmu_py/debug.c
python/libmu_py/envelope.c
python/libmu_py/folder.c
python/libmu_py/header.c
python/libmu_py/mailbox.c
python/libmu_py/mailcap.c
python/libmu_py/mailer.c
python/libmu_py/message.c
python/libmu_py/mime.c
python/libmu_py/stream.c
python/libmu_py/url.c
include/mailutils/python.h
View file @
5228452
...
...
@@ -124,21 +124,21 @@ typedef int (*mulist_extractor_fp) (void *data, PyObject **dst);
extern
void
mu_py_init
(
void
);
extern
void
mu_py_init_address
(
void
);
extern
void
mu_py_init_attribute
(
void
);
extern
void
mu_py_init_auth
(
void
);
extern
void
mu_py_init_body
(
void
);
extern
void
mu_py_init_debug
(
void
);
extern
void
mu_py_init_envelope
(
void
);
extern
void
mu_py_init_header
(
void
);
extern
void
mu_py_init_folder
(
void
);
extern
void
mu_py_init_mailer
(
void
);
extern
void
mu_py_init_mailbox
(
void
);
extern
void
mu_py_init_mailcap
(
void
);
extern
void
mu_py_init_message
(
void
);
extern
void
mu_py_init_mime
(
void
);
extern
void
mu_py_init_stream
(
void
);
extern
void
mu_py_init_url
(
void
);
extern
int
mu_py_init_address
(
void
);
extern
int
mu_py_init_attribute
(
void
);
extern
int
mu_py_init_auth
(
void
);
extern
int
mu_py_init_body
(
void
);
extern
int
mu_py_init_debug
(
void
);
extern
int
mu_py_init_envelope
(
void
);
extern
int
mu_py_init_header
(
void
);
extern
int
mu_py_init_folder
(
void
);
extern
int
mu_py_init_mailer
(
void
);
extern
int
mu_py_init_mailbox
(
void
);
extern
int
mu_py_init_mailcap
(
void
);
extern
int
mu_py_init_message
(
void
);
extern
int
mu_py_init_mime
(
void
);
extern
int
mu_py_init_stream
(
void
);
extern
int
mu_py_init_url
(
void
);
extern
PyObject
*
mu_py_mulist_to_pylist
(
mu_list_t
list
,
mulist_extractor_fp
fnc
);
...
...
python/libmu_py/address.c
View file @
5228452
...
...
@@ -324,12 +324,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_address
(
void
)
{
PyAddressType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyAddressType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyAddressType
);
}
void
...
...
python/libmu_py/attribute.c
View file @
5228452
...
...
@@ -227,12 +227,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_attribute
(
void
)
{
PyAttributeType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyAttributeType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyAttributeType
);
}
void
...
...
python/libmu_py/auth.c
View file @
5228452
...
...
@@ -666,7 +666,7 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_auth
(
void
)
{
PyAuthorityType
.
tp_new
=
PyType_GenericNew
;
...
...
@@ -675,13 +675,14 @@ mu_py_init_auth (void)
PyAuthDataType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyAuthorityType
)
<
0
)
return
;
return
-
1
;
if
(
PyType_Ready
(
&
PyTicketType
)
<
0
)
return
;
return
-
1
;
if
(
PyType_Ready
(
&
PyWicketType
)
<
0
)
return
;
return
-
1
;
if
(
PyType_Ready
(
&
PyAuthDataType
)
<
0
)
return
;
return
-
1
;
return
0
;
}
void
...
...
python/libmu_py/body.c
View file @
5228452
...
...
@@ -137,12 +137,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_body
(
void
)
{
PyBodyType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyBodyType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyBodyType
);
}
void
...
...
python/libmu_py/debug.c
View file @
5228452
...
...
@@ -100,12 +100,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_debug
(
void
)
{
PyDebugType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyDebugType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyDebugType
);
}
void
...
...
python/libmu_py/envelope.c
View file @
5228452
...
...
@@ -148,12 +148,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_envelope
()
{
PyEnvelopeType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyEnvelopeType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyEnvelopeType
);
}
void
...
...
python/libmu_py/folder.c
View file @
5228452
...
...
@@ -297,12 +297,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_folder
(
void
)
{
PyFolderType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyFolderType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyFolderType
);
}
void
...
...
python/libmu_py/header.c
View file @
5228452
...
...
@@ -206,12 +206,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_header
(
void
)
{
PyHeaderType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyHeaderType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyHeaderType
);
}
void
...
...
python/libmu_py/mailbox.c
View file @
5228452
...
...
@@ -418,12 +418,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_mailbox
(
void
)
{
PyMailboxType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyMailboxType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyMailboxType
);
}
void
...
...
python/libmu_py/mailcap.c
View file @
5228452
...
...
@@ -292,14 +292,16 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_mailcap
(
void
)
{
PyMailcapType
.
tp_new
=
PyType_GenericNew
;
PyMailcapEntryType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyMailcapType
)
<
0
||
PyType_Ready
(
&
PyMailcapEntryType
)
<
0
)
return
;
if
(
PyType_Ready
(
&
PyMailcapType
)
<
0
)
return
-
1
;
if
(
PyType_Ready
(
&
PyMailcapEntryType
)
<
0
)
return
-
1
;
return
0
;
}
void
...
...
python/libmu_py/mailer.c
View file @
5228452
...
...
@@ -209,12 +209,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_mailer
(
void
)
{
PyMailerType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyMailerType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyMailerType
);
}
void
...
...
python/libmu_py/message.c
View file @
5228452
...
...
@@ -404,12 +404,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_message
(
void
)
{
PyMessageType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyMessageType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyMessageType
);
}
void
...
...
python/libmu_py/mime.c
View file @
5228452
...
...
@@ -251,12 +251,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_mime
(
void
)
{
PyMimeType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyMimeType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyMimeType
);
}
void
...
...
python/libmu_py/stream.c
View file @
5228452
...
...
@@ -391,12 +391,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_stream
(
void
)
{
PyStreamType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyStreamType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyStreamType
);
}
void
...
...
python/libmu_py/url.c
View file @
5228452
...
...
@@ -276,12 +276,11 @@ static PyMethodDef methods[] = {
{
NULL
,
NULL
,
0
,
NULL
}
};
void
int
mu_py_init_url
(
void
)
{
PyUrlType
.
tp_new
=
PyType_GenericNew
;
if
(
PyType_Ready
(
&
PyUrlType
)
<
0
)
return
;
return
PyType_Ready
(
&
PyUrlType
);
}
void
...
...
Please
register
or
sign in
to post a comment