forked from organicmaps/organicmaps
Added JNI for loading/saving route points
This commit is contained in:
parent
12fd92ce75
commit
59fe58baf8
2 changed files with 22 additions and 0 deletions
|
@ -1432,4 +1432,22 @@ Java_com_mapswithme_maps_Framework_nativeInvalidRoutePointsTransactionId(JNIEnv
|
|||
{
|
||||
return frm()->GetRoutingManager().InvalidRoutePointsTransactionId();
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_mapswithme_maps_Framework_nativeHasSavedRoutePoints()
|
||||
{
|
||||
return frm()->GetRoutingManager().HasSavedRoutePoints();
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_mapswithme_maps_Framework_nativeLoadRoutePoints()
|
||||
{
|
||||
return frm()->GetRoutingManager().LoadRoutePoints();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_mapswithme_maps_Framework_nativeSaveRoutePoints()
|
||||
{
|
||||
frm()->GetRoutingManager().SaveRoutePoints();
|
||||
}
|
||||
} // extern "C"
|
||||
|
|
|
@ -348,4 +348,8 @@ public class Framework
|
|||
public static native void nativeApplyRoutePointsTransaction(int transactionId);
|
||||
public static native void nativeCancelRoutePointsTransaction(int transactionId);
|
||||
public static native int nativeInvalidRoutePointsTransactionId();
|
||||
|
||||
public static native boolean nativeHasSavedRoutePoints();
|
||||
public static native boolean nativeLoadRoutePoints();
|
||||
public static native void nativeSaveRoutePoints();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue