gecko-dev/security/manager/pki/nsIASN1Tree.idl
Cykesiopka 02bee25903 Bug 1366584 - Add initial [must_use] properties to PSM IDL files. r=keeler
The [must_use] property on XPIDL methods and attributes is useful for making
sure errors are properly handled.

As a first step, this patch adds the property to PSM methods and attributes that
are already correctly checked everywhere.

MozReview-Commit-ID: KyGxwUK3x0X

--HG--
extra : rebase_source : 45bd3f8d305fe221cc1bba73a520f11829dc5a42
2017-05-25 21:56:04 +08:00

25 lines
678 B
Plaintext

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
#include "nsITreeView.idl"
#include "nsIX509Cert.idl"
[scriptable, uuid(de142307-7b88-4e0a-b232-250f310e25d8)]
interface nsIASN1Tree : nsITreeView {
[must_use]
void loadASN1Structure(in nsIASN1Object asn1Object);
[must_use]
AString getDisplayData(in unsigned long index);
};
%{C++
#define NS_ASN1TREE_CONTRACTID "@mozilla.org/security/nsASN1Tree;1"
%}