unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] python: add classes to wrap all notmuch_*_t types
@ 2011-10-09 22:12 Justus Winter
  2011-10-09 22:12 ` [PATCH 2/2] python: annotate all calls into libnotmuch with types Justus Winter
  2011-11-02  7:25 ` [PATCH 1/2] python: add classes to wrap all notmuch_*_t types Sebastian Spaeth
  0 siblings, 2 replies; 23+ messages in thread
From: Justus Winter @ 2011-10-09 22:12 UTC (permalink / raw)
  To: notmuch

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
---
 bindings/python/notmuch/globals.py |   38 +++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py
index de1db16..36354fc 100644
--- a/bindings/python/notmuch/globals.py
+++ b/bindings/python/notmuch/globals.py
@@ -17,7 +17,7 @@ along with notmuch.  If not, see <http://www.gnu.org/licenses/>.
 Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>'
 """
 
-from ctypes import CDLL, c_char_p, c_int
+from ctypes import CDLL, c_char_p, c_int, Structure, POINTER
 from ctypes.util import find_library
 
 #-----------------------------------------------------------------------------
@@ -182,3 +182,39 @@ def _str(value):
         return value.encode('UTF-8')
     return value
 
+
+class NotmuchDatabaseS(Structure):
+    pass
+NotmuchDatabaseP = POINTER(NotmuchDatabaseS)
+
+class NotmuchQueryS(Structure):
+    pass
+NotmuchQueryP = POINTER(NotmuchQueryS)
+
+class NotmuchThreadsS(Structure):
+    pass
+NotmuchThreadsP = POINTER(NotmuchThreadsS)
+
+class NotmuchThreadS(Structure):
+    pass
+NotmuchThreadP = POINTER(NotmuchThreadS)
+
+class NotmuchMessagesS(Structure):
+    pass
+NotmuchMessagesP = POINTER(NotmuchMessagesS)
+
+class NotmuchMessageS(Structure):
+    pass
+NotmuchMessageP = POINTER(NotmuchMessageS)
+
+class NotmuchTagsS(Structure):
+    pass
+NotmuchTagsP = POINTER(NotmuchTagsS)
+
+class NotmuchDirectoryS(Structure):
+    pass
+NotmuchDirectoryP = POINTER(NotmuchDirectoryS)
+
+class NotmuchFilenamesS(Structure):
+    pass
+NotmuchFilenamesP = POINTER(NotmuchFilenamesS)
-- 
1.7.6.3

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2014-01-26 14:03 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-09 22:12 [PATCH 1/2] python: add classes to wrap all notmuch_*_t types Justus Winter
2011-10-09 22:12 ` [PATCH 2/2] python: annotate all calls into libnotmuch with types Justus Winter
2011-12-06 10:46   ` Patrick Totzke
2011-12-06 11:12     ` Sebastian Spaeth
2011-12-06 11:44       ` Patrick Totzke
2011-12-06 12:05     ` Sebastian Spaeth
     [not found]       ` <notmuch-sha1-f155d93e11888b35377531dd556b03fd493b7590>
2011-12-07 18:49         ` Justus Winter
     [not found]         ` <notmuch-sha1-c3821ec5e6ef2f83665b03ba10fdfff871f70c2b>
2011-12-07 19:05           ` Justus Winter
2014-01-24 13:17             ` David Bremner
2014-01-24 16:33               ` Justus Winter
2014-01-25  1:40                 ` David Bremner
2014-01-25  3:07                   ` [PATCH] lib: update documentation for notmuch_database_get_directory David Bremner
2014-01-25 11:46                     ` Tomi Ollila
2014-01-26 14:02                     ` David Bremner
2014-01-24 13:25     ` [PATCH 2/2] python: annotate all calls into libnotmuch with types David Bremner
2011-11-02  7:25 ` [PATCH 1/2] python: add classes to wrap all notmuch_*_t types Sebastian Spaeth
2011-11-28 12:36   ` Justus Winter
2011-12-01 21:25     ` Sebastian Spaeth
2011-12-01 23:32       ` James Westby
2011-12-02 12:35         ` Justus Winter
2011-12-02 14:20           ` James Westby
2011-12-02 23:24             ` James Westby
2011-12-03  2:11               ` Justus Winter

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).