summaryrefslogtreecommitdiff
path: root/misc/kdeedu3/patches/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kdeedu3/patches/patch-al')
-rw-r--r--misc/kdeedu3/patches/patch-al135
1 files changed, 135 insertions, 0 deletions
diff --git a/misc/kdeedu3/patches/patch-al b/misc/kdeedu3/patches/patch-al
new file mode 100644
index 00000000000..3fe5f24867f
--- /dev/null
+++ b/misc/kdeedu3/patches/patch-al
@@ -0,0 +1,135 @@
+$NetBSD: patch-al,v 1.1 2005/02/20 11:31:11 markd Exp $
+
+--- kstars/kstars/indi/indidevapi.h.orig 2004-06-25 21:10:04.000000000 +1200
++++ kstars/kstars/indi/indidevapi.h 2005-02-19 15:01:32.000000000 +1300
+@@ -66,25 +66,41 @@
+ \param t pointer to the vector text property to be defined.
+ \param msg message in printf style to send to the client. May be NULL.
+ */
+-extern void IDDefText (const ITextVectorProperty *t, const char *msg, ...);
++extern void IDDefText (const ITextVectorProperty *t, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /** \brief Tell client to create a number number property.
+ \param n pointer to the vector number property to be defined.
+ \param msg message in printf style to send to the client. May be NULL.
+ */
+-extern void IDDefNumber (const INumberVectorProperty *n, const char *msg, ...);
++extern void IDDefNumber (const INumberVectorProperty *n, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /** \brief Tell client to create a switch vector property.
+ \param s pointer to the vector switch property to be defined.
+ \param msg message in printf style to send to the client. May be NULL.
+ */
+-extern void IDDefSwitch (const ISwitchVectorProperty *s, const char *msg, ...);
++extern void IDDefSwitch (const ISwitchVectorProperty *s, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /** \brief Tell client to create a light vector property.
+ \param l pointer to the vector light property to be defined.
+ \param msg message in printf style to send to the client. May be NULL.
+ */
+-extern void IDDefLight (const ILightVectorProperty *l, const char *msg, ...);
++extern void IDDefLight (const ILightVectorProperty *l, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /*@}*/
+
+@@ -97,25 +113,41 @@
+ \param t pointer to the vector text property.
+ \param msg message in printf style to send to the client. May be NULL.
+ */
+-extern void IDSetText (const ITextVectorProperty *t, const char *msg, ...);
++extern void IDSetText (const ITextVectorProperty *t, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /** \brief Tell client to update an existing number vector property.
+ \param n pointer to the vector number property.
+ \param msg message in printf style to send to the client. May be NULL.
+ */
+-extern void IDSetNumber (const INumberVectorProperty *n, const char *msg, ...);
++extern void IDSetNumber (const INumberVectorProperty *n, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /** \brief Tell client to update an existing switch vector property.
+ \param s pointer to the vector switch property.
+ \param msg message in printf style to send to the client. May be NULL.
+ */
+-extern void IDSetSwitch (const ISwitchVectorProperty *s, const char *msg, ...);
++extern void IDSetSwitch (const ISwitchVectorProperty *s, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /** \brief Tell client to update an existing light vector property.
+ \param l pointer to the vector light property.
+ \param msg message in printf style to send to the client. May be NULL.
+ */
+-extern void IDSetLight (const ILightVectorProperty *l, const char *msg, ...);
++extern void IDSetLight (const ILightVectorProperty *l, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /*@}*/
+
+@@ -127,7 +159,11 @@
+ \param dev device name
+ \param msg message in printf style to send to the client.
+ */
+-extern void IDMessage (const char *dev, const char *msg, ...);
++extern void IDMessage (const char *dev, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 2, 3 ) ) )
++#endif
++;
+
+ /** \brief Function Drivers call to inform Clients a Property is no longer available, or the entire device is gone if name is NULL.
+
+@@ -135,7 +171,11 @@
+ \param name property name to be deleted.
+ \param msg message in printf style to send to the client.
+ */
+-extern void IDDelete (const char *dev, const char *name, const char *msg, ...);
++extern void IDDelete (const char *dev, const char *name, const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 3, 4 ) ) )
++#endif
++;
+
+ /** \brief Function Drivers call to log a message locally.
+
+@@ -143,7 +183,11 @@
+
+ \param msg message in printf style to send to the client.
+ */
+-extern void IDLog (const char *msg, ...);
++extern void IDLog (const char *msg, ...)
++#ifdef __GNUC__
++ __attribute__ ( ( format( printf, 1, 2 ) ) )
++#endif
++;
+
+ /**
+ * \defgroup deventFunctions Functions Drivers call to register with the INDI event utilities.