summaryrefslogtreecommitdiff
path: root/gjs/deprecation.h
blob: a5d8b344817eb9e895e4f5e570d43a68a5f2ded2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
// SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com>

#ifndef GJS_DEPRECATION_H_
#define GJS_DEPRECATION_H_

struct JSContext;

enum GjsDeprecationMessageId {
    None,
    ByteArrayInstanceToString,
    DeprecatedGObjectProperty,
};

void _gjs_warn_deprecated_once_per_callsite(JSContext* cx,
                                            GjsDeprecationMessageId message);

#endif  // GJS_DEPRECATION_H_