summaryrefslogtreecommitdiff
path: root/upb/bindings/stdc/error.h
blob: cfc70258aa9c168c131015cbbb662ed6d98d9688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * upb - a minimalist implementation of protocol buffers.
 *
 * Copyright (c) 2012 Google Inc.  See LICENSE for details.
 * Author: Josh Haberman <jhaberman@gmail.com>
 *
 * Handling of errno.
 */

#include "upb/upb.h"

#ifndef UPB_STDC_ERROR_H_
#define UPB_STDC_ERROR_H_

UPB_BEGIN_EXTERN_C

extern upb_errorspace upb_stdc_errorspace;
void upb_status_fromerrno(upb_status *status, int code);
bool upb_errno_is_wouldblock(int code);

UPB_END_EXTERN_C

#endif  /* UPB_STDC_ERROR_H_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback