From 562c4cd06e8c80fe088658a91dd63a3cb9e1fa8b Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Wed, 18 Mar 2009 13:58:33 -0400 Subject: [PATCH] Move com_err initializers into the common AFS imports. Signed-off-by: Evan Broder --- afs/_pts.pyx | 2 -- afs/afs.pxd | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/afs/_pts.pyx b/afs/_pts.pyx index 373d3c7..511e9ee 100644 --- a/afs/_pts.pyx +++ b/afs/_pts.pyx @@ -71,8 +71,6 @@ cdef import from "afs/pterror.h": PRNOENT PRTOOMANY - void initialize_PT_error_table() - cdef class PTEntry: cdef public afs_int32 flags cdef public afs_int32 id diff --git a/afs/afs.pxd b/afs/afs.pxd index 090a65e..d165921 100644 --- a/afs/afs.pxd +++ b/afs/afs.pxd @@ -134,3 +134,15 @@ cdef extern from "ubik.h": cdef extern from "afs/com_err.h": char * afs_error_message(int) + +# All AFS error tables +cdef extern from "afs/auth.h": + void initialize_KTC_error_table() +cdef extern from "afs/cellconfig.h": + void initialize_ACFG_error_table() +cdef extern from "afs/pterror.h": + void initialize_PT_error_table() +cdef extern from "rx/rxkad.h": + void initialize_RXK_error_table() +cdef extern from "ubik.h": + void initialize_U_error_table() -- 1.7.9.5