summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-05-26 16:42:44 (GMT)
committerThomas Heller <theller@ctypes.org>2006-05-26 16:42:44 (GMT)
commitada638bf91187fab819e8cbd7d0a4f6d80c0cadb (patch)
treede089b0e93fa815d82b0dbbfe045940068f65d9e /Doc/lib
parent7c940d1d680b46f3f0fb3dfb11a1b3f3272c97bb (diff)
downloadcpython-ada638bf91187fab819e8cbd7d0a4f6d80c0cadb.zip
cpython-ada638bf91187fab819e8cbd7d0a4f6d80c0cadb.tar.gz
cpython-ada638bf91187fab819e8cbd7d0a4f6d80c0cadb.tar.bz2
For now, I gave up with automatic conversion of reST to Python-latex,
so I'm writing this in latex now. Skeleton for the ctypes reference.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/lib.tex1
-rw-r--r--Doc/lib/libctypesref.tex206
2 files changed, 207 insertions, 0 deletions
diff --git a/Doc/lib/lib.tex b/Doc/lib/lib.tex
index 541ad56..cf657c3 100644
--- a/Doc/lib/lib.tex
+++ b/Doc/lib/lib.tex
@@ -245,6 +245,7 @@ and how to embed it in other applications.
\input{libplatform}
\input{liberrno}
\input{libctypes}
+\input{libctypesref}
\input{libsomeos} % Optional Operating System Services
\input{libselect}
diff --git a/Doc/lib/libctypesref.tex b/Doc/lib/libctypesref.tex
new file mode 100644
index 0000000..9e7f4d3
--- /dev/null
+++ b/Doc/lib/libctypesref.tex
@@ -0,0 +1,206 @@
+\subsection{ctypes reference\label{ctypes-reference}}
+
+\begin{funcdesc}{addressof}{obj}
+\end{funcdesc}
+
+\begin{funcdesc}{alignment}{obj_or_type}
+\end{funcdesc}
+
+\begin{excclassdesc}{ArgumentError}{}
+\end{excclassdesc}
+
+\begin{classdesc}{BigEndianStructure}{}
+\end{classdesc}
+
+\begin{funcdesc}{byref}{obj}
+\end{funcdesc}
+
+\begin{classdesc}{c_byte}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_char}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_char_p}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_double}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_float}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_int}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_int16}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_int32}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_int64}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_int8}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_long}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_longlong}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_short}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_size_t}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_ubyte}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_uint}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_uint16}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_uint32}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_uint64}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_uint8}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_ulong}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_ulonglong}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_ushort}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_void_p}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_wchar}{\optional{value}}
+\end{classdesc}
+
+\begin{classdesc}{c_wchar_p}{\optional{value}}
+\end{classdesc}
+
+\begin{funcdesc}{cast}{obj, type}
+\end{funcdesc}
+
+\begin{classdesc}{CDLL}{name, mode=RTLD_LOCAL, handle=None}
+\end{classdesc}
+
+\begin{datadesc}{cdll}
+\end{datadesc}
+
+\begin{funcdesc}{CFUNCTYPE}{restype, *argtypes}
+\end{funcdesc}
+
+\begin{funcdesc}{create_string_buffer}{init\optional{, size}}
+\end{funcdesc}
+
+\begin{funcdesc}{create_unicode_buffer}{init\optional{, size}}
+\end{funcdesc}
+
+\begin{funcdesc}{DllCanUnloadNow}{}
+\end{funcdesc}
+
+\begin{funcdesc}{DllGetClassObject}{}
+\end{funcdesc}
+
+\begin{funcdesc}{FormatError}{}
+\end{funcdesc}
+
+\begin{funcdesc}{GetLastError}{}
+\end{funcdesc}
+
+\begin{classdesc}{HRESULT}{}
+\end{classdesc}
+
+\begin{classdesc}{LibraryLoader}{dlltype}
+\end{classdesc}
+
+\begin{classdesc}{LittleEndianStructure}{}
+\end{classdesc}
+
+\begin{funcdesc}{memmove}{dst, src, count}
+\end{funcdesc}
+
+\begin{funcdesc}{memset}{dst, c, count}
+\end{funcdesc}
+
+\begin{classdesc}{OleDLL}{name, mode=RTLD_LOCAL, handle=None}
+\end{classdesc}
+
+\begin{datadesc}{oledll}
+\end{datadesc}
+
+\begin{funcdesc}{POINTER}{}
+\end{funcdesc}
+
+\begin{funcdesc}{pointer}{}
+\end{funcdesc}
+
+\begin{classdesc}{py_object}{}
+\end{classdesc}
+
+\begin{classdesc}{PyDLL}{name, mode=RTLD_LOCAL, handle=None}
+\end{classdesc}
+
+\begin{datadesc}{pydll}{}
+\end{datadesc}
+
+\begin{funcdesc}{PYFUNCTYPE}{restype, *argtypes}
+\end{funcdesc}
+
+\begin{funcdesc}{pythonapi}{}
+\end{funcdesc}
+
+\begin{funcdesc}{resize}{}
+\end{funcdesc}
+
+\begin{datadesc}{RTLD_GLOBAL}
+\end{datadesc}
+
+\begin{datadesc}{RTLD_LOCAL}
+\end{datadesc}
+
+\begin{funcdesc}{set_conversion_mode}{}
+\end{funcdesc}
+
+\begin{funcdesc}{sizeof}{}
+\end{funcdesc}
+
+\begin{funcdesc}{string_at}{address}
+\end{funcdesc}
+
+\begin{classdesc}{Structure}{}
+\end{classdesc}
+
+\begin{classdesc}{Union}{}
+\end{classdesc}
+
+\begin{classdesc}{WinDLL}{name, mode=RTLD_LOCAL, handle=None}
+\end{classdesc}
+
+\begin{datadesc}{windll}
+\end{datadesc}
+
+\begin{funcdesc}{WinError}{}
+\end{funcdesc}
+
+\begin{funcdesc}{WINFUNCTYPE}{restype, *argtypes}
+\end{funcdesc}
+
+\begin{funcdesc}{wstring_at}{address}
+\end{funcdesc}
+