From dcc4b45baa87645334ff6dd6552ca3e864de598d Mon Sep 17 00:00:00 2001 From: marschap Date: Thu, 6 Apr 2006 13:27:37 +0000 Subject: [PATCH] document changes to the get_key() return type --- docs/API-v0.5.txt | 2 +- docs/lcdproc-dev/driver-api.docbook | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/API-v0.5.txt b/docs/API-v0.5.txt index 5d32116..d3403ce 100644 --- a/docs/API-v0.5.txt +++ b/docs/API-v0.5.txt @@ -111,7 +111,7 @@ with 1 byte for each pixel-line. So that is 8 bytes for a 5x8 char. // Key functions - char *(*get_key) (drvthis); + const char *(*get_key) (drvthis); Returns a string. This string is withing driver's memory space and the server should therefor never try to modify this string. diff --git a/docs/lcdproc-dev/driver-api.docbook b/docs/lcdproc-dev/driver-api.docbook index bb8da4c..f45eeea 100644 --- a/docs/lcdproc-dev/driver-api.docbook +++ b/docs/lcdproc-dev/driver-api.docbook @@ -119,7 +119,7 @@ int does_output = 1; // But only output void (*output) (drvthis, int on); // Key functions - char *(*get_key) (drvthis); + const char *(*get_key) (drvthis); Returns a string. This string is withing driver's memory space and the server should therefor never try to modify this string. @@ -509,7 +509,7 @@ typedef struct my_driver_private { - char *(*get_key) + const char *(*get_key) Driver *drvthis