ccs_pipe_t needs copy and release functions
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 19 Jul 2007 18:32:44 +0000 (18:32 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 19 Jul 2007 18:32:44 +0000 (18:32 +0000)
On Windows it is an allocated type.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19717 dc483132-0cff-0310-8789-dd5450dbe970

src/ccapi/server/ccs_os_pipe.h
src/ccapi/server/ccs_pipe.c
src/ccapi/server/ccs_pipe.h
src/ccapi/server/mac/ccs_os_pipe.c

index fd17828e500287cc221f64d9fb20643a1fbdc28b..0311ffa2b6e066797e74052b4010d7b6fd6c7899 100644 (file)
@@ -31,5 +31,9 @@
 
 cc_int32 ccs_os_pipe_valid (ccs_pipe_t in_pipe);
 
+cc_int32 ccs_os_pipe_copy (ccs_pipe_t *out_pipe,
+                          ccs_pipe_t  in_pipe);
+
+cc_int32 ccs_os_pipe_release (ccs_pipe_t io_pipe);
 
 #endif /* CCS_OS_PIPE_H */
index a7a547f17a2bd4c3f49bc38faaafff195d8bbd88..ac02f95dfde43322736234e85b9cc4c975eef2c6 100644 (file)
@@ -33,3 +33,18 @@ cc_int32 ccs_pipe_valid (ccs_pipe_t in_pipe)
 {
     return ccs_os_pipe_valid (in_pipe);
 }
+
+/* ------------------------------------------------------------------------ */
+
+cc_int32 ccs_pipe_copy (ccs_pipe_t *out_pipe,
+                       ccs_pipe_t  in_pipe)
+{
+    return ccs_os_pipe_copy (out_pipe, in_pipe);
+}
+
+/* ------------------------------------------------------------------------ */
+
+cc_int32 ccs_pipe_release (ccs_pipe_t io_pipe)
+{
+    return ccs_os_pipe_release (io_pipe);
+}
index d124a9049604b5350dd58c0446f4140f2255c3c5..7e21be6cc2c8c625f28c274d47161450556d111d 100644 (file)
@@ -31,4 +31,9 @@
 
 cc_int32 ccs_pipe_valid (ccs_pipe_t in_pipe);
 
+cc_int32 ccs_pipe_copy (ccs_pipe_t *out_pipe,
+                       ccs_pipe_t  in_pipe);
+
+cc_int32 ccs_pipe_release (ccs_pipe_t io_pipe);
+
 #endif /* CCS_PIPE_H */
index 0b5fa89524b902f24114761784c992f6ab774003..494c91f5828d59bdbb56e9204fc89d75c9d64214 100644 (file)
@@ -37,3 +37,26 @@ cc_int32 ccs_os_pipe_valid (ccs_pipe_t in_pipe)
     return MACH_PORT_VALID (in_pipe);
 }
 
+/* ------------------------------------------------------------------------ */
+
+cc_int32 ccs_os_pipe_copy (ccs_pipe_t *out_pipe,
+                          ccs_pipe_t  in_pipe)
+{
+    cc_int32 err = 0;
+    
+    *out_pipe = in_pipe;
+    
+    return cci_check_error (err);
+}
+
+/* ------------------------------------------------------------------------ */
+
+cc_int32 ccs_os_pipe_release (ccs_pipe_t io_pipe)
+{
+    cc_int32 err = 0;
+    
+    /* Nothing to do here on Mac OS X */
+    
+    return cci_check_error (err);
+}
+