]>
git.saurik.com Git - apple/security.git/blob - libsecurity_transform/lib/misc.h
3 * libsecurity_transform
5 * Created by JOsborne on 3/19/10.
6 * Copyright 2010 Apple. All rights reserved.
10 #ifndef __INCLUDED_TRANSFORMS_MISC_H__
11 #define __INCLUDED_TRANSFORMS_MISC_H__
14 #include "SecTransform.h"
21 CFErrorRef
fancy_error(CFStringRef domain
, CFIndex code
, CFStringRef description
);
22 extern void graphviz(FILE *f
, SecTransformRef tr
);
23 extern void CFfprintf(FILE *f
, const char *format
, ...);
24 CFErrorRef
GetNoMemoryError();
25 CFErrorRef
GetNoMemoryErrorAndRetain();
26 void CFSafeRelease(CFTypeRef object
);
28 // NOTE: the return may or allocate a fair bit more space then it needs.
29 // Use it for short lived conversions (or strdup the result).
30 extern char *utf8(CFStringRef s
);