00001 /* 00002 * This file is part of testrunner-lite 00003 * 00004 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00005 * 00006 * Contact: Sampo Saaristo <ext-sampo.2.saaristo@nokia.com> 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * version 2.1 as published by the Free Software Foundation. 00011 * 00012 * This program is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00020 * 02110-1301 USA 00021 * 00022 */ 00023 00024 #ifndef REMOTE_EXECUTOR_H 00025 #define REMOTE_EXECUTOR_H 00026 00027 /* ------------------------------------------------------------------------- */ 00028 /* INCLUDES */ 00029 #include "testrunnerlite.h" 00030 00031 /* ------------------------------------------------------------------------- */ 00032 /* CONSTANTS */ 00033 /* None */ 00034 00035 /* ------------------------------------------------------------------------- */ 00036 /* MACROS */ 00037 /* None */ 00038 00039 /* ------------------------------------------------------------------------- */ 00040 /* DATA TYPES */ 00041 /* ------------------------------------------------------------------------- */ 00042 /* None */ 00043 00044 /* ------------------------------------------------------------------------- */ 00045 /* FORWARD DECLARATIONS */ 00046 /* None */ 00047 00048 /* ------------------------------------------------------------------------- */ 00049 /* STRUCTURES */ 00050 /* None */ 00051 00052 /* ------------------------------------------------------------------------- */ 00053 /* FUNCTION PROTOTYPES */ 00054 /* ------------------------------------------------------------------------- */ 00055 void ssh_executor_init (const char *hostname); 00056 /* ------------------------------------------------------------------------- */ 00057 int ssh_execute (const char *hostname, const char *command); 00058 /* ------------------------------------------------------------------------- */ 00059 int ssh_kill (const char *hostname, pid_t id); 00060 /* ------------------------------------------------------------------------- */ 00061 int ssh_check_conn (const char *hostname); 00062 /* ------------------------------------------------------------------------- */ 00063 void ssh_clean (const char *hostname, pid_t id); 00064 /* ------------------------------------------------------------------------- */ 00065 void ssh_executor_close (const char *hostname); 00066 /* ------------------------------------------------------------------------- */ 00067 #endif /* REMOTE_EXECUTOR_H */ 00068 /* End of file */