See am_auth_test.c in the C SDK samples for an example of how to use this structure with the locale callback.