mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

- Dropped the protobuf extensions in favor of explicitly listing out methods in both services if we want to implement both, as it's clearer. - Move Service/Method wrappers into a separate crate that the various clients can import, to easily get at the list of backend services and their correct indices and comments.
47 lines
1.1 KiB
Protocol Buffer
47 lines
1.1 KiB
Protocol Buffer
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
syntax = "proto3";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
package anki.links;
|
|
|
|
import "anki/generic.proto";
|
|
|
|
service LinksService {
|
|
rpc HelpPageLink(HelpPageLinkRequest) returns (generic.String);
|
|
}
|
|
|
|
// Implicitly includes any of the above methods that are not listed in the
|
|
// backend service.
|
|
service BackendLinksService {}
|
|
|
|
message HelpPageLinkRequest {
|
|
enum HelpPage {
|
|
NOTE_TYPE = 0;
|
|
BROWSING = 1;
|
|
BROWSING_FIND_AND_REPLACE = 2;
|
|
BROWSING_NOTES_MENU = 3;
|
|
KEYBOARD_SHORTCUTS = 4;
|
|
EDITING = 5;
|
|
ADDING_CARD_AND_NOTE = 6;
|
|
ADDING_A_NOTE_TYPE = 7;
|
|
LATEX = 8;
|
|
PREFERENCES = 9;
|
|
INDEX = 10;
|
|
TEMPLATES = 11;
|
|
FILTERED_DECK = 12;
|
|
IMPORTING = 13;
|
|
CUSTOMIZING_FIELDS = 14;
|
|
DECK_OPTIONS = 15;
|
|
EDITING_FEATURES = 16;
|
|
FULL_SCREEN_ISSUE = 17;
|
|
CARD_TYPE_DUPLICATE = 18;
|
|
CARD_TYPE_NO_FRONT_FIELD = 19;
|
|
CARD_TYPE_MISSING_CLOZE = 20;
|
|
CARD_TYPE_EXTRANEOUS_CLOZE = 21;
|
|
CARD_TYPE_TEMPLATE_ERROR = 22;
|
|
}
|
|
HelpPage page = 1;
|
|
}
|