-
Notifications
You must be signed in to change notification settings - Fork 32
Add support for snappy #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add support for snappy #250
Conversation
tonyespy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per our discussion the other day, let's merge and/or push this into a separate branch for now.
Also didn't see any changes for the ubuntu-apndn plugin?
| char *filename; | ||
|
|
||
| snap = getenv("SNAP"); | ||
| filename = g_strdup_printf("%s%s", snap ? snap : "", MBPI_DATABASE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should discuss where mbpi ends up living as it's used by modemmanager too.
I think it probably should live in it's own snap that shares the file via content sharing. We also should explore the ability for an end-user to modify this file on a working system ( ie. allow a writable version that would override the default ) vs. forcing the user to report a bug and wait for an official update.
| gboolean ret = FALSE; | ||
| const char *snap; | ||
| char *filename; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a short comment that explains the SNAP env variable.
| const char *filename; | ||
| char *snap_filename = NULL; | ||
| const char *conf_override = getenv("OFONO_PHONESIM_CONFIG"); | ||
| const char *snap_common = getenv("SNAP_COMMON"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a short comment explaining why SNAP_COMMON is used here.
|
|
||
| g_key_file_free(keyfile); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a short comment here describing the purpose of this function, and why SNAP_COMMON is used.
|
Might as well add some extra logic to plugins/u8500.c, as it won't be possible for a user to add the file /etc/imei. |
386e60c to
94d7420
Compare
|
Branch refreshed after addressing comments. Some points:
|
Add support for snappy by checking env vars to know where to store/find data files.