|
Packit |
3ff1e7 |
/* libquvi
|
|
Packit |
3ff1e7 |
* Copyright (C) 2012-2013 Toni Gundogdu <legatvs@gmail.com>
|
|
Packit |
3ff1e7 |
*
|
|
Packit |
3ff1e7 |
* This file is part of libquvi <http://quvi.sourceforge.net/>.
|
|
Packit |
3ff1e7 |
*
|
|
Packit |
3ff1e7 |
* This library is free software: you can redistribute it and/or
|
|
Packit |
3ff1e7 |
* modify it under the terms of the GNU Affero General Public
|
|
Packit |
3ff1e7 |
* License as published by the Free Software Foundation, either
|
|
Packit |
3ff1e7 |
* version 3 of the License, or (at your option) any later version.
|
|
Packit |
3ff1e7 |
*
|
|
Packit |
3ff1e7 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
3ff1e7 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
3ff1e7 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
3ff1e7 |
* GNU Affero General Public License for more details.
|
|
Packit |
3ff1e7 |
*
|
|
Packit |
3ff1e7 |
* You should have received a copy of the GNU Affero General
|
|
Packit |
3ff1e7 |
* Public License along with this library. If not, see
|
|
Packit |
3ff1e7 |
* <http://www.gnu.org/licenses/>.
|
|
Packit |
3ff1e7 |
*/
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#ifndef l_def_h
|
|
Packit |
3ff1e7 |
#define l_def_h
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define USERDATA_QUVI_T "_quvi_t"
|
|
Packit |
3ff1e7 |
#define GS_EMPTY_S ""
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Media script: Media properties */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define MS_CAN_PARSE_URL "can_parse_url" /* Script can parse URL */
|
|
Packit |
3ff1e7 |
#define MS_START_TIME_MS "start_time_ms" /* Start streaming at */
|
|
Packit |
3ff1e7 |
#define MS_DURATION_MS "duration_ms" /* Media duration in ms */
|
|
Packit |
3ff1e7 |
#define MS_INPUT_URL "input_url" /* App req. URL */
|
|
Packit |
3ff1e7 |
#define MS_THUMB_URL "thumb_url" /* Image thumbnail URL */
|
|
Packit |
3ff1e7 |
#define MS_GOTO_URL "goto_url" /* Redirect to URL */
|
|
Packit |
3ff1e7 |
#define MS_DOMAINS "domains" /* Accepted domains */
|
|
Packit |
3ff1e7 |
#define MS_TITLE "title" /* Media title */
|
|
Packit |
3ff1e7 |
#define MS_ID "id" /* Media ID */
|
|
Packit |
3ff1e7 |
#define MS_STREAMS "streams" /* Media streams */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Media script: stream properties */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define MSS_VIDEO "video"
|
|
Packit |
3ff1e7 |
#define MSS_VIDEO_BITRATE_KBIT_S "bitrate_kbit_s"
|
|
Packit |
3ff1e7 |
#define MSS_VIDEO_ENCODING "encoding"
|
|
Packit |
3ff1e7 |
#define MSS_VIDEO_HEIGHT "height"
|
|
Packit |
3ff1e7 |
#define MSS_VIDEO_WIDTH "width"
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define MSS_AUDIO "audio"
|
|
Packit |
3ff1e7 |
#define MSS_AUDIO_BITRATE_KBIT_S MSS_VIDEO_BITRATE_KBIT_S
|
|
Packit |
3ff1e7 |
#define MSS_AUDIO_ENCODING MSS_VIDEO_ENCODING
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define MSS_FLAGS "flags"
|
|
Packit |
3ff1e7 |
#define MSS_FLAGS_BEST "best"
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define MSS_CONTAINER "container"
|
|
Packit |
3ff1e7 |
#define MSS_URL "url"
|
|
Packit |
3ff1e7 |
#define MSS_ID "id"
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Subtitle export script */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define SUES_CAN_EXPORT_DATA "can_export_data" /* Script can export data */
|
|
Packit |
3ff1e7 |
#define SUES_EXPORT_FORMAT "export_format" /* Script generates this format */
|
|
Packit |
3ff1e7 |
#define SUES_FROM_FORMAT "from_format" /* Export from this format */
|
|
Packit |
3ff1e7 |
#define SUES_INPUT_URL "input_url" /* Subtitle language URL */
|
|
Packit |
3ff1e7 |
#define SUES_TO_FORMAT "to_format" /* Export to this format */
|
|
Packit |
3ff1e7 |
#define SUES_DATA "data" /* Exported data */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Subtitle script */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define SUS_CAN_PARSE_URL "can_parse_url" /* Script can parse URL */
|
|
Packit |
3ff1e7 |
#define SUS_INPUT_URL "input_url" /* App req. URL */
|
|
Packit |
3ff1e7 |
#define SUS_DOMAINS "domains" /* Domains */
|
|
Packit |
3ff1e7 |
#define SUS_SUBTITLES "subtitles" /* Subtitles */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Subtitles - qargs.subtitles */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define SUSS_FORMAT "format" /* Internal subtitle format */
|
|
Packit |
3ff1e7 |
#define SUSS_TYPE "type" /* Subtitle type {cc,tts,...} */
|
|
Packit |
3ff1e7 |
#define SUSS_LANG "lang" /* Subtitles: Language */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Subtitles - qargs.subtitles[n].lang */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define SUSSL_TRANSLATED "translated" /* Translated (English) language */
|
|
Packit |
3ff1e7 |
#define SUSSL_ORIGINAL "original" /* Original language */
|
|
Packit |
3ff1e7 |
#define SUSSL_CODE "code" /* Code {en,fi,...} */
|
|
Packit |
3ff1e7 |
#define SUSSL_URL "url" /* URL */
|
|
Packit |
3ff1e7 |
#define SUSSL_ID "id" /* ID {cc_en,tts_fi,...} */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Playlist script */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define PS_CAN_PARSE_URL "can_parse_url" /* Script can parse URL */
|
|
Packit |
3ff1e7 |
#define PS_INPUT_URL "input_url" /* App req. URL */
|
|
Packit |
3ff1e7 |
#define PS_THUMB_URL "thumb_url" /* Playlist thumbnail URL */
|
|
Packit |
3ff1e7 |
#define PS_DOMAINS "domains" /* Domains */
|
|
Packit |
3ff1e7 |
#define PS_TITLE "title" /* Title */
|
|
Packit |
3ff1e7 |
#define PS_MEDIA "media" /* Found media */
|
|
Packit |
3ff1e7 |
#define PS_ID "id" /* Playlist ID */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Playlist script: Media properties */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define PSM_DURATION_MS "duration_ms" /* Duration in ms */
|
|
Packit |
3ff1e7 |
#define PSM_TITLE "title" /* Title */
|
|
Packit |
3ff1e7 |
#define PSM_URL "url" /* URL */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Scan script */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define SS_INPUT_URL "input_url" /* App req. URL */
|
|
Packit |
3ff1e7 |
#define SS_MEDIA_URL "media_url" /* Array of found media URLs */
|
|
Packit |
3ff1e7 |
#define SS_CONTENT "content" /* Content to scan */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Utility script */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#define US_INPUT_URL "input_url" /* App req. URL */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* quvi object */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* http */
|
|
Packit |
3ff1e7 |
#define QO_CONTENT_LENGTH "content_length"
|
|
Packit |
3ff1e7 |
#define QO_RESPONSE_CODE "response_code"
|
|
Packit |
3ff1e7 |
#define QO_CONTENT_TYPE "content_type"
|
|
Packit |
3ff1e7 |
#define QO_RESOLVED_URL "resolved_url"
|
|
Packit |
3ff1e7 |
#define QO_DATA "data"
|
|
Packit |
3ff1e7 |
/* crypto */
|
|
Packit |
3ff1e7 |
#define QO_CIPHERTEXT "ciphertext"
|
|
Packit |
3ff1e7 |
#define QO_PLAINTEXT "plaintext"
|
|
Packit |
3ff1e7 |
#define QO_DIGEST "digest"
|
|
Packit |
3ff1e7 |
/* base64 */
|
|
Packit |
3ff1e7 |
#define QO_BASE64 "base64"
|
|
Packit |
3ff1e7 |
/* common */
|
|
Packit |
3ff1e7 |
#define QO_ERROR_MESSAGE "error_message"
|
|
Packit |
3ff1e7 |
#define QO_QUVI_CODE "quvi_code"
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Human-readable quvi object crypto option names */
|
|
Packit |
3ff1e7 |
#define HRE_CIPHER_FLAGS "cipher flags"
|
|
Packit |
3ff1e7 |
#define HRE_CIPHER_MODE "cipher mode"
|
|
Packit |
3ff1e7 |
#define HRE_CIPHER_KEY "cipher key"
|
|
Packit |
3ff1e7 |
#define HRE_ALGORITHM "algorithm"
|
|
Packit |
3ff1e7 |
/* Human-readable quvi object HTTP cookie option names */
|
|
Packit |
3ff1e7 |
#define HRE_COOKIE_MODE "cookie mode"
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* Lua indexes.
|
|
Packit |
3ff1e7 |
*
|
|
Packit |
3ff1e7 |
* Used as 'key' (at index -2) and 'value' (at index -1). Many of
|
|
Packit |
3ff1e7 |
* the libquvi functions that call lua_next use these indexes. This is
|
|
Packit |
3ff1e7 |
* similar to (in Lua):
|
|
Packit |
3ff1e7 |
* for k,v in pairs(t) do ... end
|
|
Packit |
3ff1e7 |
*/
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
enum {LI_VALUE = -1, LI_KEY = -2};
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
#endif /* l_def_h */
|
|
Packit |
3ff1e7 |
|
|
Packit |
3ff1e7 |
/* vim: set ts=2 sw=2 tw=72 expandtab: */
|