places/api/mod.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5pub mod history;
6pub mod matcher;
7pub mod places_api;
8use crate::db::PlacesDb;
9use crate::error::Result;
10use crate::observation::VisitObservation;
11use crate::storage;
12
13pub fn apply_observation(conn: &mut PlacesDb, visit_obs: VisitObservation) -> Result<()> {
14 storage::history::apply_observation(conn, visit_obs)?;
15 Ok(())
16}