This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Egor's daemon - missed a file


this belongs in include/cygwin
/* cygserver.h

   Copyright 2001 Red Hat Inc.

   Written by Egor Duda <deo@logos-m.ru>

This file is part of Cygwin.

This software is a copyrighted work licensed under the terms of the
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
details. */

#define MAX_REQUEST_SIZE 128

#define CYGWIN_SERVER_VERSION_MAJOR	1
#define CYGWIN_SERVER_VERSION_API	1
#define CYGWIN_SERVER_VERSION_MINOR	0
#define CYGWIN_SERVER_VERSION_PATCH	0

struct request_header
{
  DWORD cb;
  DWORD req_id;
  DWORD error_code;
}
#ifdef __GNUC__
  __attribute__ ((packed))
#endif
;

extern void cygserver_init ();
extern int cygserver_request (struct request_header*);

#define INIT_REQUEST(req,id) \
	(req).header.cb = sizeof (req); \
	(req).header.req_id = id;

#define CYGSERVER_REQUEST_GET_VERSION	1
#define CYGSERVER_REQUEST_ATTACH_TTY	2

struct request_get_version
{
  struct request_header header;
  DWORD major, api, minor, patch;
}
#ifdef __GNUC__
  __attribute__ ((packed))
#endif
;

struct request_attach_tty
{
  struct request_header header;
  DWORD pid, master_pid;
  HANDLE from_master, to_master;
}
#ifdef __GNUC__
  __attribute__ ((packed))
#endif
;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]