Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/media/gmp/widevine-adapter/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  enum.patch   Sprache: unbekannt

 
Spracherkennung für: .patch vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

diff --git a/content_decryption_module.h b/content_decryption_module.h
--- a/content_decryption_module.h
+++ b/content_decryption_module.h
@@ -18,6 +18,8 @@ typedef __int64 int64_t;
 #include <stdint.h>
 #endif
 
+#include "mozilla/DefineEnum.h"
+
 // The version number must be rolled when the exported functions are updated!
 // If the CDM and the adapter use different versions of these functions, the
 // adapter will fail to load or crash!
@@ -75,15 +77,15 @@ CDM_API const char* GetCdmVersion();
 
 namespace cdm {
 
-enum Status : uint32_t {
-  kSuccess = 0,
+MOZ_DEFINE_ENUM_WITH_BASE_AND_TOSTRING(Status, uint32_t, (
+  kSuccess,
   kNeedMoreData,  // Decoder needs more data to produce a decoded frame/sample.
   kNoKey,         // The required decryption key is not available.
   kInitializationError,    // Initialization error.
   kDecryptError,           // Decryption failed.
   kDecodeError,            // Error decoding audio or video.
   kDeferredInitialization  // Decoder is not ready for initialization.
-};
+));
 CHECK_TYPE(Status, 4, 4);
 
 // Exceptions used by the CDM to reject promises.

[ Dauer der Verarbeitung: 0.32 Sekunden  ]