Mercurial > embed
comparison libzip/lib/zip_source_error.c @ 56:056ee6b5913e
libzip: update to 1.3.0, closes #654
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 10 Oct 2017 20:43:12 +0200 |
parents | 2306f4b04790 |
children |
comparison
equal
deleted
inserted
replaced
55:a7a33cbf3e52 | 56:056ee6b5913e |
---|---|
1 /* | 1 /* |
2 zip_source_error.c -- get last error from zip_source | 2 zip_source_error.c -- get last error from zip_source |
3 Copyright (C) 2009-2014 Dieter Baron and Thomas Klausner | 3 Copyright (C) 2009-2016 Dieter Baron and Thomas Klausner |
4 | 4 |
5 This file is part of libzip, a library to manipulate ZIP archives. | 5 This file is part of libzip, a library to manipulate ZIP archives. |
6 The authors can be contacted at <libzip@nih.at> | 6 The authors can be contacted at <libzip@nih.at> |
7 | 7 |
8 Redistribution and use in source and binary forms, with or without | 8 Redistribution and use in source and binary forms, with or without |
38 zip_error_t * | 38 zip_error_t * |
39 zip_source_error(zip_source_t *src) | 39 zip_source_error(zip_source_t *src) |
40 { | 40 { |
41 return &src->error; | 41 return &src->error; |
42 } | 42 } |
43 | |
44 bool | |
45 _zip_source_had_error(zip_source_t *src) | |
46 { | |
47 return zip_source_error(src)->zip_err != ZIP_ER_OK; | |
48 } |