michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: %{ C++ michael@0: typedef void (*NSSCMSContentCallback)(void *arg, const char *buf, unsigned long len); michael@0: michael@0: #define NS_CMSDECODER_CONTRACTID "@mozilla.org/nsCMSDecoder;1" michael@0: %} michael@0: michael@0: native NSSCMSContentCallback(NSSCMSContentCallback); michael@0: michael@0: interface nsICMSMessage; michael@0: michael@0: /** michael@0: * nsICMSDecoder michael@0: * Interface to decode an CMS message michael@0: */ michael@0: [uuid(65244a06-a342-11d5-ba47-00108303b117)] michael@0: interface nsICMSDecoder : nsISupports michael@0: { michael@0: void start(in NSSCMSContentCallback cb, in voidPtr arg); michael@0: void update(in string aBuf, in long aLen); michael@0: void finish(out nsICMSMessage msg); michael@0: }; michael@0: