summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
69ce5cf)
Signed-off-by: Evan Broder <broder@mit.edu>
from afs cimport *
from afs import pyafs_error
from afs cimport *
from afs import pyafs_error
-cdef import from "afs/prs_fs.h":
+cdef extern from "afs/prs_fs.h":
enum:
PRSFS_READ, PRSFS_WRITE, PRSFS_INSERT, PRSFS_LOOKUP,
PRSFS_DELETE, PRSFS_LOCK, PRSFS_ADMINISTER,
enum:
PRSFS_READ, PRSFS_WRITE, PRSFS_INSERT, PRSFS_LOOKUP,
PRSFS_DELETE, PRSFS_LOCK, PRSFS_ADMINISTER,
from afs import pyafs_error
import re
from afs import pyafs_error
import re
-cdef import from "afs/ptuser.h":
+cdef extern from "afs/ptuser.h":
enum:
PR_MAXNAMELEN
PRGRP
enum:
PR_MAXNAMELEN
PRGRP
int ubik_PR_ListEntries(ubik_client *, afs_int32, afs_int32, afs_int32, prentries *, afs_int32 *)
int ubik_PR_SetFieldsEntry(ubik_client *, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32)
int ubik_PR_ListEntries(ubik_client *, afs_int32, afs_int32, afs_int32, prentries *, afs_int32 *)
int ubik_PR_SetFieldsEntry(ubik_client *, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32)
-cdef import from "afs/pterror.h":
+cdef extern from "afs/pterror.h":
-cdef import from "krb5/krb5.h":
+cdef extern from "krb5/krb5.h":
struct _krb5_context:
pass
struct krb5_principal_data:
struct _krb5_context:
pass
struct krb5_principal_data:
unsigned short out_size
unsigned short in_size
unsigned short out_size
unsigned short in_size
-cdef import from "afs/venus.h":
+cdef extern from "afs/venus.h":
enum:
# PIOCTLS to Venus that we use
VIOCGETAL, VIOC_GETVCXSTATUS2, VIOCSETAL, VIOC_FILE_CELL_NAME
enum:
# PIOCTLS to Venus that we use
VIOCGETAL, VIOC_GETVCXSTATUS2, VIOCSETAL, VIOC_FILE_CELL_NAME
import sys
# otherwise certain headers are unhappy
import sys
# otherwise certain headers are unhappy
-cdef import from "netinet/in.h": pass
-cdef import from "afs/vice.h": pass
+cdef extern from "netinet/in.h": pass
+cdef extern from "afs/vice.h": pass