Skip to content

Commit

Permalink
logmsg: make log_msg_values_foreach() take the receiver as const pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Benke <[email protected]>
  • Loading branch information
ihrwein committed Sep 13, 2015
1 parent 5af36de commit 4bf9114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ log_msg_set_value_indirect(LogMessage *self, NVHandle handle, NVHandle ref_handl
}

gboolean
log_msg_values_foreach(LogMessage *self, NVTableForeachFunc func, gpointer user_data)
log_msg_values_foreach(const LogMessage *self, NVTableForeachFunc func, gpointer user_data)
{
return nv_table_foreach(self->payload, logmsg_registry, func, user_data);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/logmsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ typedef gboolean (*LogMessageTagsForeachFunc)(const LogMessage *self, LogTagId t

void log_msg_set_value(LogMessage *self, NVHandle handle, const gchar *new_value, gssize length);
void log_msg_set_value_indirect(LogMessage *self, NVHandle handle, NVHandle ref_handle, guint8 type, guint16 ofs, guint16 len);
gboolean log_msg_values_foreach(LogMessage *self, NVTableForeachFunc func, gpointer user_data);
gboolean log_msg_values_foreach(const LogMessage *self, NVTableForeachFunc func, gpointer user_data);
void log_msg_set_match(LogMessage *self, gint index, const gchar *value, gssize value_len);
void log_msg_set_match_indirect(LogMessage *self, gint index, NVHandle ref_handle, guint8 type, guint16 ofs, guint16 len);
void log_msg_clear_matches(LogMessage *self);
Expand Down

0 comments on commit 4bf9114

Please sign in to comment.