1 // Copyright 2018 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef LIB_FIDL_EPITAPH_H_
6 #define LIB_FIDL_EPITAPH_H_
7 
8 #include <zircon/types.h>
9 
10 __BEGIN_CDECLS
11 
12 #ifdef __Fuchsia__
13 
14 // Sends an epitaph with the given values down the channel.
15 // See https://fuchsia.googlesource.com/docs/+/master/development/languages/fidl/languages/c.md#fidl_epitaph_write
16 zx_status_t fidl_epitaph_write(zx_handle_t channel, zx_status_t error);
17 
18 #endif // __Fuchsia__
19 
20 __END_CDECLS
21 
22 #endif // LIB_FIDL_EPITAPH_H_
23