blob: c8cc4bbaeb253db13f76617b29c007f634612023 [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +00001/*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11/**
12 * This file and its corresponding .mm file implement a main function on Mac.
13 * It's useful if you need to access a webcam in your Mac application. The code
14 * forks a worker thread which runs the below ImplementThisToRunYourTest
15 * function, and uses the main thread to pump messages. That way we can run our
16 * code in a regular sequential fashion and still pump events, which are
17 * necessary to access the webcam for instance.
18 */
19
20// Implement this method to do whatever you want to do in the worker thread.
21// The argc and argv variables are the unmodified command line from main.
22int ImplementThisToRunYourTest(int argc, char** argv);