vmcd.h 1.67 KB
Newer Older
Timothy Stack's avatar
Timothy Stack committed
1
/*
Timothy Stack's avatar
Timothy Stack committed
2
 * Copyright (c) 2005, 2006 University of Utah and the Flux Group.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * 
 * {{{EMULAB-LICENSE
 * 
 * This file is part of the Emulab network testbed software.
 * 
 * This file is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at
 * your option) any later version.
 * 
 * This file is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
 * License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * }}}
Timothy Stack's avatar
Timothy Stack committed
22
 */
23 24 25 26

#ifndef _vmcd_h
#define _vmcd_h

Timothy Stack's avatar
Timothy Stack committed
27 28
#include "listNode.h"

29
struct vmc_client {
Timothy Stack's avatar
Timothy Stack committed
30
    /** Our connection to the vmc-client. */
31
    mtp_handle_t vc_handle;
Timothy Stack's avatar
Timothy Stack committed
32 33

    /** The current frame for this camera. */
Timothy Stack's avatar
Timothy Stack committed
34
    struct lnMinList vc_frame;
Timothy Stack's avatar
Timothy Stack committed
35
    /** The last frame received from this camera. */
36
    struct lnMinList vc_last_frame;
Timothy Stack's avatar
Timothy Stack committed
37
    /** Frame count for this camera so we can detect when they fall behind. */
38
    unsigned long long vc_frame_count;
Timothy Stack's avatar
Timothy Stack committed
39 40

    /** The host where the vmc-client is running. */
41
    char *vc_hostname;
Timothy Stack's avatar
Timothy Stack committed
42
    /** The port the vmc-client is listening on. */
43
    int vc_port;
Timothy Stack's avatar
Timothy Stack committed
44 45 46 47 48

    /**
     * The bounds for this camera.  These values are detected automatically as
     * objects move around in the field.
     */
49 50 51 52 53 54
    float vc_left;
    float vc_right;
    float vc_top;
    float vc_bottom;
};

55 56 57 58 59
/**
 * Version information.
 */
extern char build_info[];

60
#endif