From: owen Date: Tue, 18 Jan 2005 22:01:25 +0000 (+0000) Subject: Bits and pieces, mostly stubs, for the Mac port. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/e479b152ca3b0861ba5fd93abec89619e1d37061?hp=c849ff239ce40a4d07559f289dbd96b5b0458c34 Bits and pieces, mostly stubs, for the Mac port. git-svn-id: svn://svn.tartarus.org/sgt/putty@5136 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/mac/mac.c b/mac/mac.c index 8dde3e12..f1f2bf32 100644 --- a/mac/mac.c +++ b/mac/mac.c @@ -784,6 +784,8 @@ void update_specials_menu(void *frontend) mac_adjustmenus(); } +void notify_remote_exit(void *fe) { /* XXX anything needed here? */ } + /* * Local Variables: * c-file-style: "simon" diff --git a/mac/macmisc.c b/mac/macmisc.c index 7255b3d9..72a360a1 100644 --- a/mac/macmisc.c +++ b/mac/macmisc.c @@ -1,4 +1,4 @@ -/* $Id: macmisc.c,v 1.3 2003/03/29 23:07:55 ben Exp $ */ +/* $Id$ */ /* * Copyright (c) 1999, 2003 Ben Harris * All rights reserved. @@ -172,6 +172,33 @@ FILE *f_open(Filename fn, char const *mode) return ret; } +struct tm ltime(void) +{ + struct tm tm; + DateTimeRec d; + GetTime(&d); + + tm.tm_sec=d.second; + tm.tm_min=d.minute; + tm.tm_hour=d.hour; + tm.tm_mday=d.day; + tm.tm_mon=d.month; + tm.tm_year=d.year; + tm.tm_wday=d.dayOfWeek; + tm.tm_yday=1; /* GetTime doesn't tell us */ + tm.tm_isdst=0; /* Have to do DST ourselves */ + + /* XXX find out DST adjustment and add it */ + + return tm; +} + +const char platform_x11_best_transport[] = "localhost"; + +char *platform_get_x_display(void) { + return NULL; +} + /* * Local Variables: * c-file-style: "simon" diff --git a/mac/macnet.c b/mac/macnet.c index 63d0cc42..51ad35ae 100644 --- a/mac/macnet.c +++ b/mac/macnet.c @@ -174,6 +174,10 @@ int net_service_lookup(char *service) return 0; } +SockAddr platform_get_x11_unix_address(int displaynum, char **canonicalname) +{ + return NULL; +} /* * Local Variables: diff --git a/mac/macnoise.c b/mac/macnoise.c index 3a7e8d0a..9d843355 100644 --- a/mac/macnoise.c +++ b/mac/macnoise.c @@ -68,6 +68,15 @@ void noise_get_light(void (*func) (void *, int)) } /* + * This function is called on a timer, and grabs as much changeable + * system data as it can quickly get its hands on. + */ +void noise_regular(void) +{ + /* XXX */ +} + +/* * This function is called on every keypress or mouse move, and * will add the current time to the noise pool. It gets the scan * code or mouse position passed in, and adds that too.