Shaka Packager SDK
Loading...
Searching...
No Matches
packager
app
validate_flag.cc
1
// Copyright 2014 Google LLC. All rights reserved.
2
//
3
// Use of this source code is governed by a BSD-style
4
// license that can be found in the LICENSE file or at
5
// https://developers.google.com/open-source/licenses/bsd
6
//
7
// Flag validation help functions.
8
9
#include <packager/app/validate_flag.h>
10
11
#include <cstdio>
12
#include <string>
13
14
namespace
shaka
{
15
16
void
PrintError
(
const
std::string& error_message) {
17
fprintf(stderr,
"ERROR: %s\n"
, error_message.c_str());
18
}
19
20
void
PrintWarning
(
const
std::string& warning_message) {
21
fprintf(stderr,
"WARNING: %s\n"
, warning_message.c_str());
22
}
23
24
}
// namespace shaka
shaka
All the methods that are virtual are virtual for mocking.
Definition
cpix_encryption_flags.cc:51
shaka::PrintWarning
void PrintWarning(const std::string &warning_message)
Definition
validate_flag.cc:20
shaka::PrintError
void PrintError(const std::string &error_message)
Definition
validate_flag.cc:16
Generated on Mon Jul 27 2026 18:29:59 for Shaka Packager SDK by
1.9.8