flow: constify getters param

Some potential callers are already using constified values so it
is good to do it.
pull/1356/head
Eric Leblond 12 years ago
parent 881f32cc02
commit 54b13851cc

@ -860,12 +860,12 @@ int FlowSetProtoEmergencyTimeout(uint8_t proto, uint32_t emerg_new_timeout,
return 1; return 1;
} }
AppProto FlowGetAppProtocol(Flow *f) AppProto FlowGetAppProtocol(const Flow *f)
{ {
return f->alproto; return f->alproto;
} }
void *FlowGetAppState(Flow *f) void *FlowGetAppState(const Flow *f)
{ {
return f->alstate; return f->alstate;
} }

@ -574,8 +574,8 @@ static inline void FlowDeReference(Flow **d)
int FlowClearMemory(Flow *,uint8_t ); int FlowClearMemory(Flow *,uint8_t );
AppProto FlowGetAppProtocol(Flow *f); AppProto FlowGetAppProtocol(const Flow *f);
void *FlowGetAppState(Flow *f); void *FlowGetAppState(const Flow *f);
void FlowHandlePacketUpdateRemove(Flow *f, Packet *p); void FlowHandlePacketUpdateRemove(Flow *f, Packet *p);
void FlowHandlePacketUpdate(Flow *f, Packet *p); void FlowHandlePacketUpdate(Flow *f, Packet *p);

Loading…
Cancel
Save