Răsfoiți Sursa

coroapi.h: Make totem_mcast's *iovec param const.

* include/corosync/engine/coroapi.h (struct corosync_api_v1):
[totem_mcast]: Make *iovec param const.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2049 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 ani în urmă
părinte
comite
e26aedf84f
3 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 1 1
      exec/main.c
  2. 2 2
      exec/main.h
  3. 2 2
      include/corosync/engine/coroapi.h

+ 1 - 1
exec/main.c

@@ -473,7 +473,7 @@ void main_get_config_modules(struct config_iface_ver0 ***modules, int *num)
 }
 
 int main_mcast (
-        struct iovec *iovec,
+        const struct iovec *iovec,
         unsigned int iov_len,
         unsigned int guarantee)
 {

+ 2 - 2
exec/main.h

@@ -7,7 +7,7 @@
  * Author: Steven Dake (sdake@redhat.com)
  *
  * This software licensed under BSD license, the text of which follows:
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  *
@@ -56,7 +56,7 @@ extern unsigned long long *(*main_clm_get_by_nodeid) (unsigned int node_id);
 extern void main_get_config_modules(struct config_iface_ver0 ***modules, int *num);
 
 extern int main_mcast (
-	struct iovec *iovec,
+	const struct iovec *iovec,
 	unsigned int iov_len,
 	unsigned int guarantee);
 

+ 2 - 2
include/corosync/engine/coroapi.h

@@ -415,8 +415,8 @@ struct corosync_api_v1 {
 
 	int (*totem_ring_reenable) (void);
 
-	/* FIXME: const iovec? */
-	int (*totem_mcast) (struct iovec *iovec, unsigned int iov_len, unsigned int guarantee);
+	int (*totem_mcast) (const struct iovec *iovec,
+			    unsigned int iov_len, unsigned int guarantee);
 
 	int (*totem_ifaces_get) (
 		unsigned int nodeid,