diff options
Diffstat (limited to 'rlz/examples')
-rw-r--r-- | rlz/examples/rlz_id.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rlz/examples/rlz_id.cc b/rlz/examples/rlz_id.cc new file mode 100644 index 0000000..ce01f18 --- /dev/null +++ b/rlz/examples/rlz_id.cc @@ -0,0 +1,13 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "rlz/lib/machine_id.h" + +int main() { + std::string machine_id; + if (!rlz_lib::GetMachineId(&machine_id)) + return 1; + + printf("%s\n", machine_id.c_str()); +} |