summaryrefslogtreecommitdiffstats
path: root/Mac/Include/macglue.h
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-07-08 22:07:23 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-07-08 22:07:23 (GMT)
commit4e566ab904ef4712cb116bccc7a47bd4f0b8d764 (patch)
tree60852c2b572829311136e6641329f9827b92e85f /Mac/Include/macglue.h
parent2d96f11d07a13b461589169b1db49d310a6edc0b (diff)
downloadcpython-4e566ab904ef4712cb116bccc7a47bd4f0b8d764.zip
cpython-4e566ab904ef4712cb116bccc7a47bd4f0b8d764.tar.gz
cpython-4e566ab904ef4712cb116bccc7a47bd4f0b8d764.tar.bz2
Implemented minimal FSRef support, plus conversion between FSRefs, FSSpecs and pathnames where applicable.
PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue. These mods are untested on OSX.
Diffstat (limited to 'Mac/Include/macglue.h')
-rw-r--r--Mac/Include/macglue.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index 9b55a4f..e0c0ff5 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -106,9 +106,6 @@ int PyMac_GetStr255(PyObject *, Str255); /* argument parser for Str255 */
PyObject *PyMac_BuildStr255(Str255); /* Convert Str255 to PyObject */
PyObject *PyMac_BuildOptStr255(Str255); /* Convert Str255 to PyObject, NULL to None */
-int PyMac_GetFSSpec(PyObject *, FSSpec *); /* argument parser for FSSpec */
-PyObject *PyMac_BuildFSSpec(FSSpec *); /* Convert FSSpec to PyObject */
-
int PyMac_GetRect(PyObject *, Rect *); /* argument parser for Rect */
PyObject *PyMac_BuildRect(Rect *); /* Convert Rect to PyObject */
@@ -129,6 +126,14 @@ void PyMac_Initialize(void); /* Initialize function for embedding Python */
short PyMac_OpenPrefFile(void); /* From macgetpath.c, open and return preference file */
#endif
+/* from macfsmodule.c: */
+int PyMac_GetFSSpec(PyObject *, FSSpec *); /* argument parser for FSSpec */
+PyObject *PyMac_BuildFSSpec(FSSpec *); /* Convert FSSpec to PyObject */
+
+int PyMac_GetFSRef(PyObject *, FSRef *); /* argument parser for FSRef */
+PyObject *PyMac_BuildFSRef(FSRef *); /* Convert FSRef to PyObject */
+
+
/* From macfiletype.c: */
long PyMac_getfiletype(char *); /* Get file type */