diff --git a/PythonKit/Python.swift b/PythonKit/Python.swift index 984aee0..5fa10bb 100644 --- a/PythonKit/Python.swift +++ b/PythonKit/Python.swift @@ -25,8 +25,8 @@ /// Typealias used when passing or returning a `PyObject` pointer with /// implied ownership. -@usableFromInline -typealias OwnedPyObjectPointer = PyObjectPointer +//@usableFromInline +public typealias OwnedPyObjectPointer = PyObjectPointer /// A primitive reference to a Python C API `PyObject`. /// @@ -97,20 +97,20 @@ public struct PythonObject { } /// Creates a new instance and a new reference. - init(_ pointer: OwnedPyObjectPointer) { + public init(_ pointer: OwnedPyObjectPointer) { reference = PyReference(pointer) } /// Creates a new instance consuming the specified `PyObject` pointer. - init(consuming pointer: PyObjectPointer) { + public init(consuming pointer: PyObjectPointer) { reference = PyReference(consuming: pointer) } - fileprivate var borrowedPyObject: PyObjectPointer { + public var borrowedPyObject: PyObjectPointer { return reference.borrowedPyObject } - fileprivate var ownedPyObject: OwnedPyObjectPointer { + public var ownedPyObject: OwnedPyObjectPointer { return reference.ownedPyObject } } diff --git a/PythonKit/PythonLibrary+Symbols.swift b/PythonKit/PythonLibrary+Symbols.swift index c4db681..355b2cd 100644 --- a/PythonKit/PythonLibrary+Symbols.swift +++ b/PythonKit/PythonLibrary+Symbols.swift @@ -18,8 +18,8 @@ // Required Python typealiases and constants. //===----------------------------------------------------------------------===// -@usableFromInline -typealias PyObjectPointer = UnsafeMutableRawPointer +//@usableFromInline +public typealias PyObjectPointer = UnsafeMutableRawPointer typealias PyMethodDefPointer = UnsafeMutableRawPointer typealias PyCCharPointer = UnsafePointer typealias PyBinaryOperation =