Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/include/prop Commit changes to header files missed in...



details:   https://anonhg.NetBSD.org/src/rev/87065a47a296
branches:  trunk
changeset: 748034:87065a47a296
user:      bad <bad%NetBSD.org@localhost>
date:      Sat Oct 10 21:26:16 2009 +0000

description:
Commit changes to header files missed in my previous commit.

Implement prop_array_externalize_to_pref(), prop_array_copyin(),
prop_dictionary_externalize_to_pref() and prop_dictionary_copyin()
as discussed in the thread:
http://mail-index.netbsd.org/tech-kern/2009/07/29/msg005594.html

Add prototypes for prop_array_externalize_to_pref() and
prop_dictionary_externalize_to_pref().

diffstat:

 common/include/prop/prop_array.h      |  10 ++++++----
 common/include/prop/prop_dictionary.h |  11 +++++++----
 2 files changed, 13 insertions(+), 8 deletions(-)

diffs (65 lines):

diff -r c59850871d39 -r 87065a47a296 common/include/prop/prop_array.h
--- a/common/include/prop/prop_array.h  Sat Oct 10 21:10:04 2009 +0000
+++ b/common/include/prop/prop_array.h  Sat Oct 10 21:26:16 2009 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: prop_array.h,v 1.8 2008/09/11 13:15:13 haad Exp $    */
+/*     $NetBSD: prop_array.h,v 1.9 2009/10/10 21:26:16 bad Exp $    */
 
 /*-
- * Copyright (c) 2006 The NetBSD Foundation, Inc.
+ * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -66,12 +66,14 @@
 prop_array_t   prop_array_internalize_from_file(const char *);
 
 #if defined(__NetBSD__)
+struct plistref;
+
 #if !defined(_KERNEL) && !defined(_STANDALONE)
+bool           prop_array_externalize_to_pref(prop_array_t, struct plistref *);
 int            prop_array_send_ioctl(prop_array_t, int, unsigned long);
 int            prop_array_recv_ioctl(int, unsigned long, prop_array_t *);
 #elif defined(_KERNEL)
-struct plistref;
-
+int            prop_array_copyin(const struct plistref *, prop_array_t *);
 int            prop_array_copyin_ioctl(const struct plistref *, const u_long,
                                        prop_array_t *);
 int            prop_array_copyout_ioctl(struct plistref *, const u_long,
diff -r c59850871d39 -r 87065a47a296 common/include/prop/prop_dictionary.h
--- a/common/include/prop/prop_dictionary.h     Sat Oct 10 21:10:04 2009 +0000
+++ b/common/include/prop/prop_dictionary.h     Sat Oct 10 21:26:16 2009 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: prop_dictionary.h,v 1.9 2008/04/28 20:22:51 martin Exp $       */
+/*     $NetBSD: prop_dictionary.h,v 1.10 2009/10/10 21:26:16 bad Exp $ */
 
 /*-
- * Copyright (c) 2006 The NetBSD Foundation, Inc.
+ * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -82,7 +82,10 @@
                                              prop_dictionary_keysym_t);
 
 #if defined(__NetBSD__)
+struct plistref;
+
 #if !defined(_KERNEL) && !defined(_STANDALONE)
+bool           prop_dictionary_externalize_to_pref(prop_dictionary_t, struct plistref *);
 int            prop_dictionary_send_ioctl(prop_dictionary_t, int,
                                           unsigned long);
 int            prop_dictionary_recv_ioctl(int, unsigned long,
@@ -91,8 +94,8 @@
                                               int, unsigned long,
                                               prop_dictionary_t *);
 #elif defined(_KERNEL)
-struct plistref;
-
+int            prop_dictionary_copyin(const struct plistref *,
+                                      prop_dictionary_t *);
 int            prop_dictionary_copyin_ioctl(const struct plistref *,
                                             const u_long,
                                             prop_dictionary_t *);



Home | Main Index | Thread Index | Old Index