libsmpp34[master]: add esm_class definitions

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Aug 11 11:36:45 UTC 2017


Patch Set 1: Code-Review+1

(1 comment)

https://gerrit.osmocom.org/#/c/3473/1/src/smpp34.h
File src/smpp34.h:

Line 213: 	SMPP34_REPLY_PATH		= 0x80,
I think an enum only makes sense for fields that are not a bit/flag mask.  The biggest benefit of using enum's is that you will get compiler warnings in case you forgot to handle one of the cases.  However, for bit-mask values, that won't work either.  Aynway, not critical.  To me it seems like the "mode" could be an enum, but everything else is flags masked into the same byte?


-- 
To view, visit https://gerrit.osmocom.org/3473
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I91afd8b462b8fd3b2c4c5b54f4eeb7ec5b730b65
Gerrit-PatchSet: 1
Gerrit-Project: libsmpp34
Gerrit-Branch: master
Gerrit-Owner: Pablo Neira Ayuso <pablo at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-HasComments: Yes



More information about the gerrit-log mailing list