Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

`change_args` record should be part of the couch_changes app

  • Loading branch information...
commit d2d3e2098e4bc29b4224a7ab340929460e1da710 1 parent fdce4ab
@benoitc benoitc authored
View
27 apps/couch_changes/include/couch_changes.hrl
@@ -0,0 +1,27 @@
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+-record(changes_args, {
+ feed = "normal",
+ dir = fwd,
+ since = 0,
+ limit = 1000000000000000,
+ style = main_only,
+ heartbeat,
+ timeout,
+ filter = "",
+ filter_fun,
+ filter_args = [],
+ include_docs = false,
+ conflicts = false,
+ db_open_options = []
+}).
View
1  apps/couch_changes/src/couch_changes.erl
@@ -11,6 +11,7 @@
% the License.
-module(couch_changes).
+-include("couch_changes.hrl").
-include_lib("couch/include/couch_db.hrl").
-include_lib("couch_httpd/include/couch_httpd.hrl").
View
1  apps/couch_changes/src/couch_httpd_changes.erl
@@ -11,6 +11,7 @@
% the License.
-module(couch_httpd_changes).
+-include("couch_changes.hrl").
-include_lib("couch/include/couch_db.hrl").
-include_lib("couch_httpd/include/couch_httpd.hrl").
-export([handle_changes_req/2]).
View
1  apps/couch_replicator/src/couch_replicator_api_wrap.erl
@@ -20,6 +20,7 @@
-include_lib("couch/include/couch_db.hrl").
-include_lib("couch_httpd/include/couch_httpd.hrl").
+-include_lib("couch_changes/include/couch_changes.hrl").
-include("couch_replicator_api_wrap.hrl").
-export([
View
1  apps/couch_replicator/src/couch_replicator_manager.erl
@@ -23,6 +23,7 @@
-export([code_change/3, terminate/2]).
-include_lib("couch/include/couch_db.hrl").
+-include_lib("couch_changes/include/couch_changes.hrl").
-include("couch_replicator.hrl").
-include("couch_replicator_js_functions.hrl").
Please sign in to comment.
Something went wrong with that request. Please try again.