Add const for most of the babeltrace APi calls
[lttngtop.git] / src / iostreamtop.c
index 4426d03c27ca243f32c52731114a4fd300018855..e3a643478d7e3608cbd54a071feb912c02879ef3 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- * MA 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #include <stdlib.h>
  */
 
 #include <stdlib.h>
@@ -167,7 +166,7 @@ struct file_history *create_file(struct file_history *history, char *file_name)
 enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data,
                void *private_data)
 {
 enum bt_cb_ret handle_exit_syscall(struct bt_ctf_event *call_data,
                void *private_data)
 {
-       struct definition *scope;
+       const struct definition *scope;
        unsigned long timestamp;
        char *comm;
        uint64_t ret, tid;
        unsigned long timestamp;
        char *comm;
        uint64_t ret, tid;
@@ -209,7 +208,7 @@ error:
 enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data,
                void *private_data)
 {
 enum bt_cb_ret handle_sys_write(struct bt_ctf_event *call_data,
                void *private_data)
 {
-       struct definition *scope;
+       const struct definition *scope;
        struct processtop *tmp;
        unsigned long timestamp;
        uint64_t cpu_id;
        struct processtop *tmp;
        unsigned long timestamp;
        uint64_t cpu_id;
@@ -249,7 +248,7 @@ enum bt_cb_ret handle_sys_read(struct bt_ctf_event *call_data,
                void *private_data)
 {
        struct processtop *tmp;
                void *private_data)
 {
        struct processtop *tmp;
-       struct definition *scope;
+       const struct definition *scope;
        unsigned long timestamp;
        uint64_t cpu_id;
        char *comm;
        unsigned long timestamp;
        uint64_t cpu_id;
        char *comm;
@@ -290,7 +289,7 @@ enum bt_cb_ret handle_sys_open(struct bt_ctf_event *call_data,
 {
 
        struct processtop *tmp;
 {
 
        struct processtop *tmp;
-       struct definition *scope;
+       const struct definition *scope;
        unsigned long timestamp;
        uint64_t cpu_id;
        char *comm;
        unsigned long timestamp;
        uint64_t cpu_id;
        char *comm;
@@ -329,7 +328,7 @@ error:
 enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data,
                void *private_data)
 {
 enum bt_cb_ret handle_sys_close(struct bt_ctf_event *call_data,
                void *private_data)
 {
-       struct definition *scope;
+       const struct definition *scope;
        unsigned long timestamp;
        int64_t tid;
        struct processtop *tmp;
        unsigned long timestamp;
        int64_t tid;
        struct processtop *tmp;
This page took 0.022936 seconds and 4 git commands to generate.