plugins,telit: refactor functions dealing with #BND
Currently functions dealing with #BND request - mm_telit_parse_bnd_query_response - mm_telit_parse_bnd_test_response - mm_telit_build_bnd_request have all a long list of arguments configuring how to deal with the BND string. This commit reworks this list of arguments into a single new structure "MMTelitBNDParseConfig" with the following advantages - shorter list of arguments for the above functions - future changes to this arguments will be transparent for the functions above that only pass the values - one single point where the structure is created: a new function mm_shared_telit_get_bnd_parse_config.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "mm-broadband-modem.h"
|
||||
#include "mm-iface-modem.h"
|
||||
#include "mm-iface-modem-location.h"
|
||||
#include "mm-modem-helpers-telit.h"
|
||||
|
||||
#define MM_TYPE_SHARED_TELIT (mm_shared_telit_get_type ())
|
||||
#define MM_SHARED_TELIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_SHARED_TELIT, MMSharedTelit))
|
||||
@@ -101,4 +102,6 @@ gchar * mm_shared_telit_modem_load_revision_finish (MMIfaceModem *self,
|
||||
void mm_shared_telit_store_revision (MMSharedTelit *self,
|
||||
const gchar *revision);
|
||||
|
||||
void mm_shared_telit_get_bnd_parse_config (MMIfaceModem *self,
|
||||
MMTelitBNDParseConfig *config);
|
||||
#endif /* MM_SHARED_TELIT_H */
|
||||
|
||||
Reference in New Issue
Block a user