From 0fd2f830882402979a83010e89650e7245960d39 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Tue, 21 Jan 2014 18:38:49 -0800 Subject: Sync to internal Google development. --- upb/bindings/stdc/error.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 upb/bindings/stdc/error.h (limited to 'upb/bindings/stdc/error.h') diff --git a/upb/bindings/stdc/error.h b/upb/bindings/stdc/error.h new file mode 100644 index 0000000..9802097 --- /dev/null +++ b/upb/bindings/stdc/error.h @@ -0,0 +1,27 @@ +/* + * upb - a minimalist implementation of protocol buffers. + * + * Copyright (c) 2012 Google Inc. See LICENSE for details. + * Author: Josh Haberman + * + * Handling of errno. + */ + +#include "upb/upb.h" + +#ifndef UPB_STDC_ERROR_H_ +#define UPB_STDC_ERROR_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +extern upb_errorspace upb_stdc_errorspace; +void upb_status_fromerrno(upb_status *status, int code); +bool upb_errno_is_wouldblock(int code); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* UPB_STDC_ERROR_H_ */ -- cgit v1.2.3