monotone

monotone Mtn Source Tree

Root/platform.hh

1#ifndef __PLATFORM_HH__
2#define __PLATFORM_HH__
3
4// copyright (C) 2002, 2003, 2004 graydon hoare <graydon@pobox.com>
5// all rights reserved.
6// licensed to the public under the terms of the GNU GPL (>= 2)
7// see the file COPYING for details
8
9// this describes functions to be found, alternatively, in win32/* or unix/*
10// directories.
11
12#include <string>
13
14void read_password(std::string const & prompt, char * buf, size_t bufsz);
15void get_system_flavour(std::string & ident);
16
17// For LUA
18int existsonpath(const char *exe);
19int make_executable(const char *path);
20int process_spawn(const char * const argv[]);
21int process_wait(int pid, int *res);
22int process_kill(int pid, int signal);
23int process_sleep(unsigned int seconds);
24
25// for term selection
26bool have_smart_terminal();
27
28// for netsync
29void start_platform_netsync();
30void end_platform_netsync();
31
32#endif // __PLATFORM_HH__

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status